I am using C# with .Net 1.1.
I would like to open a modal dialog box using the functionality of ShowDialog, but I only want the parent form to be disabled for input. I would like the other windows to continue to receive user input. I also want to maintain the functionality that ShowDialog does not return until the modal dialog box closes so I can test which button was pressed.
A few solutions that I have found suggested opening the form modeless and disabling the parent form until a button is pressed. I see two problems with this solution: 1) the buttons on the parent form are all grayed out, which does not look like standard modal behavior, and 2) what mechanism should I use to wait for the dialog box to close (Show returns immediately, but ShowDialog returns only after the modal window closes)?
Start Free Trial