Thank you very much, that code was very useful, but just a few questions, first, why would you use XAML and not a regular windows form, second what is the reason for 2 classes, you can just put the content of Reciever in TcpListener and just use the thread within TcpListener itself.
I hope you dont mind if I use your code in my own program with many modifications

, I willll be sure to release it with credit

.