Anyone uses MSComm in .net? I try to dynamically create the MSComm, without
dragging the control to the form, but got the InvalidActiveXS tateException.
Dim cmp As AxMSCommLib.AxM SComm
cmp = New AxMSCommLib.AxM SComm
CType(Me.ScanSe rial, System.Componen tModel.ISupport Initialize).Beg inInit()
cmp.ContainingC ontrol = Me
cmp.Enabled = True
cmp.Name = "Serial"
'cmp.OcxState =
CType(Me.ScanSe rial, System.Componen tModel.ISupport Initialize).End Init()
Any idea how to solve it or what causes the problem? Is the BeginInit() and
EndInit() needed?
thanks
eugene