unable to receive events from run time created controls
this is no winsock control on my form (because there is no form =) this is in a class module i wish to eventually get into a DLL)
this is in my code
Dim sckConnections() as Winsock
i need to allocate/deallocate connections on the fly. I am unable to receive events to get this working.
What am i missing?
thanks a bunch ;)
you can't use WithEvents on arrays =(
i tried doing
Code:
Dim WithEvents sckConnections() as Winsock
and it didn't work.. this is from the VB help...
WithEvents
Optional.Keyword that specifies that varname is anobject variable used to respond to events triggered by an ActiveX object. WithEvents is valid only in class modules. You can declare as many individual variables as you like using WithEvents, but you can't create arrays with WithEvents. You can't use New with WithEvents.