PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
The Form.Show() method
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
The Form.Show() method
![]() |
The Form.Show() method |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
As Bineesh said, we need more info. Something in MyForm is locking up.
On Wed, 01 Jun 2005 05:02:02 +0200, active85k <active85k@discussions.microsoft.com> wrote: > 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? > -- Happy coding! Morten Wennevik [C# MVP] |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

