Got the below class, it has one thread that does a continuous loop getting
network packets, it all seems to work well, except when i try to open a
results Form "myTestForm" from within the thread, it just hangs.. tried
threading TestForm, but not quite sure how to do that and whether or not it
would solve my problem..
public class ListenerForm : System.Windows.Forms.Form{
private void Form_Load(object sender, System.EventArgs e){
System.Threading.Thread t = new System.Threading.Thread(new
System.Threading.ThreadStart(ListenLoop));
t.Start();
}
private void ListenLoop(){
while(listening){
TestForm myTestForm = new TestForm();
myTestForm.Visible = true;
}
}
}