Hello everyone. I am new to Visual Basic. I made a new Form project with Visual Studio 2008, and used Winsocket to connect to an IRC Server, but i have some problems. I can connect normally to IRC without any problem, but my problem is that i cant make it receive data. Like printing the text that it takes from the server, to the program.
My actual problem is that after GetData it stops working.

I have a code like that:

Code:
Dim strData As String
AxWinsock1.GetData(strData)
TextBox2.Text = TextBox2.Text & vbCrLf & strData
But its not working at all. Everything under GetData is not working.
And one more problem i got, is that if i place these after this:

Code:
Private Sub AxWinsock1_DataArrival(ByVal bytesTotal As Long)
It doesnt work at all. I mean, i tried to put under this, to change the text of a textbox, and its not changing it. So something is wrong, can somebody help me? What i want to do is to read the text of an IRC Channel, and if the text begins with a specific word, to do something.

I Appriciate any idea.
Thank you very much for reading.