I have been working on making an IRC client in visual basic.net using the WinSock control.
I have been able to send messages on it and i can see them on another client that I logged into.
But for the textbox (multiline) that im using to display the messages, it isnt displaying any messages i send or any that i send from another client. So basically all i can do is send messages from my client im working on and can see them on another one. Even the messages I send using the one im working on dont show in the textbox.
Here is my get data code:
I have been able to send messages on it and i can see them on another client that I logged into.
But for the textbox (multiline) that im using to display the messages, it isnt displaying any messages i send or any that i send from another client. So basically all i can do is send messages from my client im working on and can see them on another one. Even the messages I send using the one im working on dont show in the textbox.
Here is my get data code:
Code:
Private Sub sckIRC_DataArrival(ByVal eventSender As System.Object, ByVal eventArgs As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles sckIRC.DataArrival
On Error Resume Next
Dim sRecv As String
sckIRC.GetData(sRecv) Put the data recieved into the string
Play ping pong with the server
If Split(sRecv, " ")(0) = "PING" Then
sckIRC.SendData("PONG " & Split(sRecv, " ")(1))
End If
Update the buffer
textMessages.Text = sRecv & vbCrLf
textMessages.SelectionStart = Len(textMessages.Text)
End Sub