ali raza

ali raza

  • NA
  • 80
  • 0

control created in worker thread in not being properly shown.

Jan 15 2008 4:21 AM

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.