I am trying to use Winsock without a form and can't figure out how to trap events such as DataArrival and Error.

Private Sub g_objWs_DataArrival(ByVal bytesTotal As Long)

doesn't seem to get called.

Can someone tell me how to do this?

Thanks