all groups > dotnet windows forms > may 2005 >
You're in the

dotnet windows forms

group:

The Form.Show() method



The Form.Show() method active85k
5/31/2005 8:02:02 PM
dotnet windows forms: 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
Re: The Form.Show() method active85k
6/1/2005 5:03:09 AM
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();
...
}

Re: The Form.Show() method Morten Wennevik
6/1/2005 11:11:34 AM
As Bineesh said, we need more info. Something in MyForm is locking up.



[quoted text, click to view]



--
Happy coding!
AddThis Social Bookmark Button