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.
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
Post a Comment