Greetings everyone,

I'm just wondering, is it possible to have more than one form with controls using only one winsock placed at a main form? I tried actually doing this, but it didn't work properly.

I've downloaded Pino's chatroom guide, and added a button which opens a new form. It contains a button and a textbox. I wanted that when you press the button, whatever is written in the textbox is sent to the server, through winsock at the main form, and recieve it back and display it in a message box for example. When I tried to do this, the message box kept displaying the "previous" data sent instead of current which is in the textbox.

Can anyone please advise me on this matter? I'd really appreciate it!