I have an app whose threads pop up a modal dialog as appropriate.
If a modal dialog is open when a thread is to pop its own, I need the previous modal dialog to close before allowing the thread to pop a new one.
The following links have helped me understand the problem better but not led to a working solution:
Windows Forms: wait until another form closes
How can I make execution pause until new form is closed?
preventing multiple instance of one form from displaying
How can I make a single instance form (not application)?
A self-managing form would be ideal. So, mutex? Singleton? A proper implementation eludes me.
Thank you all.