I have a Windows Forms application with a main form and several background threads. In order to show \"nice\" messages I implemented a form to be shown as a modal dialog using <
How can I make sure that every call to ShowDialog() will block the main form?
ShowDialog()
Execute the calls to ShowDialog() on the main thread. If you need to invoke them from a different thread, use Invoke() to run them on the main thread.
Invoke()