Can somebody please tell me what I'm doing wrong? I am creating a TCPClinet. I have 2 errors and both of them come back to this line.


The errors are:
1. The best overloaded method match for 'System.Text.Encoding.GetBytes(char[])' has some invalid arguments
2. Argument '1': cannot convert from 'System.Windows.Forms.TextBox' to 'char[]'

connectSocket is the name of my open socket.
sendText is the name of the textbox where I type in what to send to the server like GET and stuff.

I think the same.
Don't call your textboxes "sendText".
Use something like "sendTextTxb" that way you will get less confused.

This question has already been answered. Start a new discussion instead.