Reputation: 59416
In the main thread I need to do the following:
The question is that I don't know how to show a modal form and not stop the main thread.
Any suggestion?
Upvotes: 3
Views: 584
Reputation: 13129
I would use a ThreadPool thead... something like...
ThreadPool.QueueUserWorkItem(o => dlg.Show());
This will launch the dialog on a separate thread. Your main thread will continue processing.
Upvotes: 2