0
Answer

control created in worker thread in not being properly shown.

ali raza

ali raza

16y
2.3k
1

Hi I have created a C# program in which I created a worker thread. I have use a while loop “while(true)” and in that while I used TcpListener in the function which is being called by the worker thread.

 

Upon on certain condition I want that thread to create a windows form object that I have created programmatically.

 

The problem is that the Form control is not being shown properly. May be because of the fact that TcpListner is constantly listening because of which function is not able completed.

 

can some body hlp me out with this.