c# - How to run a form with it's own message pump? -


i've got application need open many forms heterogeneous own , run independently. application proceeds block on long running operations (making operations asynchronous not possible). run these forms on separate thread own message pump. way that?

application.run(); 

this should launch form on own thread, own message pump.

edit: http://en.csharp-online.net/application_architecture_in_windows_forms_2.0%e2%80%94application_lifetime

since new ui thread created whenever application.run invoked, should accomplish looking for.

edit #2: http://msdn.microsoft.com/en-us/library/system.windows.forms.application.run(vs.71).aspx

the documentation little ambiguous. i've accomplished long running operations using threadpool , periodically marshalling control form render status, sounds spawn multiple forms application.run().


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -