Hi. Im making a small socket app (im talking about the server by the way). All it does is wait for a connection, and when it recieves one, it displays a message from the client closes the connection, and then loops to wait for a new connection.
I wanted to be able to have a button to stop the server at any time, but because the UI isnt responsive while waiting for a connection or in a loop, so i put the method into a thread, but the it uses textboxes that were created in another thread, so i cant do it that way.
I apoligise if that wasnt clear.
Can anyone help?