Hi,
I have a form in a winforms app. When I press a button, it loads a modal message box with the options yes and no.
This is fine, but when I press no, I want to close both the dialog box and the form where the button which launched the dialog box (the sender) is.
So the app structure is like this:
Main app window > press menu item to launch new form (connection setup) > press button on this form to launch message box.
Two windows are open (connection setup form and dialog box), which I both want closed.
How could I do this?