I think there's a few issues. Your sending your UI thread into an infinite loop that makes the application freeze. You should move you TCP listener code to it's own thread, then use a delegate call to send information back to the form. There are multiple expamples of using worker threads on this forum. Also, the Console.WriteLine isn't going to display anything to your user. The label you're using to display information to the user is getting overriden on every loop iteration, where I would think you would want it to append the data.




Reply With Quote
