The Form.Show() method

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

First of all excuse me for my bad english but i'm italian.
I have an application with two threads. The second one is not the main
thread and i tryed to show a form like that:

MyForm f = new MyForm(params);
f.Show();

but the form is frozen. i tryed with Invoke and BeginInvoke but i have no
solutions. Can someone help me?
 
nothing more special:

in the main thread happen this:

Thread t = new Thread(new ThreadStart(ThreadProc));
t.Start();

in t thread happen this:

ProcessMessage(bla bla);

in ProcessMessage happen this:

ProcessMessage(bla bla)
{
...
...
MyForm f = new MyForm(bla bla);
f.Show();
...
}

and the form not work correctly.
 
Back
Top