I am trying to display a second form via another thread but it disappears immeditely. How can I get it to remain visible while the main form performs some other processing? Any help would be appreciated - thanks
Printable View
I am trying to display a second form via another thread but it disappears immeditely. How can I get it to remain visible while the main form performs some other processing? Any help would be appreciated - thanks
See if this works for you:
Application.Run(new frmYourFormNameHere())
I think this will only exist while the thread does, but that sounds like what you want anyways.
I'm just learning about threading, so take this with a grain of salt.
Why would you want your main form to do some processing and spawn a thread to show a form? I believe the thread dies as soon as the method your thread points to ends.
It might be a better idea to create a thread from your main thread that does the processing, and let the main thread show the other form.