- Код: Выделить всё
Dim WithEvents Socket As CSocket
Private Sub Socket_OnConnect()
Socket.SendData "Test"
End Sub
Private Sub Command1_Click()
Set Socket = New CSocket
Socket.Connect "xxx.xxx.xxx.xxx", 1234
End Sub
Private Sub Socket_OnDataArrival(ByVal bytesTotal As Long)
MsgBox "Wow!"
End Sub