I have an open modal dialog (Windows Forms). I want, that the dialog is closed when clicking outside the dialog (on the parent form). How can I do that?
You should change it to a non-modal dialog (open it with Show(..)) and then use the Deactivate event and close it.
Show(..)
Deactivate
1.4m articles
1.4m replys
5 comments
57.0k users