Thanks, but I did like that, I try to create instance of axsocket (catalyst socketwrench product), I met below error:
An unhandled exception of type 'InvalidActiveXStateException' occurred
in axinterop.socketwrenchctrl.dll
I run below codes:
Module Module1
#Region "My Init Test"
Private components As New System.ComponentModel.Container
Public WithEvents oSocket As AxSocketWrenchCtrl.AxSocket
#End Region
Public Sub SocketInit()
Dim resources As System.Resources.ResourceManager = New
System.Resources.ResourceManager(GetType(Form1))
oSocket = New AxSocketWrenchCtrl.AxSocket
CType(oSocket,
System.ComponentModel.ISupportInitialize).BeginInit()
oSocket.Enabled = True
oSocket.Name = "oSocket"
oSocket.OcxState = CType(resources.GetObject
("oSocket.OcxState"), System.Windows.Forms.AxHost.State)
CType(oSocket,
System.ComponentModel.ISupportInitialize).EndInit()
oSocket.HostName = oSocket.LocalAddress
oSocket.RemoteService = 16603
oSocket.Connect()
End Sub
End Module
Am I missing something?, I need advise .. many thanks in advance
Regards
Winanjaya
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only