P
Patrik =?ISO-8859-1?Q?R=E5dman?=
Hi,
Could someone explain to me why this doesn't work? (VS 7.1, .NET 1.1)
Thread A:
Application.Run();
Thread B:
myForm.Show();
If I run both on the same thread it works.
I thought that it was enough to have a message loop running on any thread
in the application to make forms work, but apparently not. Why?
If I change the code in thread A to Application.Run(myForm); the form works.
Why? I thought the only difference would be that the message loop would now
exit when the form closes.
If I change the code in thread B to myForm.ShowDialog(); the form also
works. Why?
Could someone explain to me why this doesn't work? (VS 7.1, .NET 1.1)
Thread A:
Application.Run();
Thread B:
myForm.Show();
If I run both on the same thread it works.
I thought that it was enough to have a message loop running on any thread
in the application to make forms work, but apparently not. Why?
If I change the code in thread A to Application.Run(myForm); the form works.
Why? I thought the only difference would be that the message loop would now
exit when the form closes.
If I change the code in thread B to myForm.ShowDialog(); the form also
works. Why?