-
I have a class which manages my network connections. I implemented the winsock control using WithEvents, but my problem is: How can I make an array?
Code:
Dim WithEvents WS() as Winsock
or
Type tUser
WithEvents WS as WinSock
End Type
User() as tUser
There must be a way!
-
How about having a classcollection of wrapper class for each winsock, should catch all events and then you could like raise an indexed event in the classcollection
-
This would have been a great thing to put on one of those wish lists for new versions.
I know it's not exactly a lot of work to wrap 'em up a
in 'collection class', and the code for it write is fairly reusable, but i'm sure MS could put a nasty little hack in that allowed you to add event raising objects to a standard collection, and when those events were triggered, the collection pased them back out. would be really usefull.
just a thought.