Hi,
I'm attempting to create a vb.net class (no form) which uses
functionality provided by an activex control.
1) I've ran aximp and added the 2 references,
2) Added the declaration:
Private WithEvents m_Asabtcp As AxASABTCPLib.AxAsabtcp
3) Initialized in the constructor:
Public Sub New()
m_Asabtcp = New AxASABTCPLib.AxAsabtcp
Debug.WriteLine("AutoPoll enabled: " &
m_Asabtcp.AutoPollEnabled)
End Sub
My problem (see msg below) occurs when trying to reference the property
in the property in the debug statement. If I use the debugger, break,
set a watch & expand the properties in the watch window, everything
works.
"An unhandled exception of type 'InvalidActiveXStateException' occurred
in axasabtcplib.dll"
Thanks for your help!
rr_dot_net - 17 Jun 2005 21:10 GMT
This newsgroup is slightly abandoned....
I've found that activeX "controls" don't work real well without being
"sited" to a form or another control. Usually the properties and methods are
not available at all prior to adding to a form. I don't know the
intricacies, but that's been my experience....
> Hi,
>
[quoted text clipped - 23 lines]
>
> Thanks for your help!