Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create an instance of an ActiveX control without
Message
De
28/09/2004 11:38:03
 
 
À
28/09/2004 09:27:56
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00946537
Message ID:
00946719
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform