-
WithEvents does not work. That only works for a single control. I'm using
Code:
Public sckConnections() as winsock
I allocate winsock objects as they are needed and give them back when not needed. However, I can't catch any of the events for this control array. All the code is in a class module so I don't have the control array on the form.
Can this be done?
-
I think you can preset stuff.
For example, just put this in your class and when error comes up, Winsock will catch it.
Code:
Private Sub sckSend_Error(ByVal Number As Integer, _
Description As String, ByVal Scode As Long, ByVal Source As _
String, ByVal HelpFile As String, ByVal HelpContext As _
Long, CancelDisplay As Boolean)
MsgBox "An error occurred in winsock!"
End
End Sub