I have a Windows form that opens a modal dialog window. From there I
can open yet another modal dialog window so I can grab some info to
pass back to the first dialog. Both need to be modal and are launched
like this:
>From my main Windows form:if (formName1.ShowDialog( this ) == DialogResult.OK)
......
>From formName1:if (formName2.ShowDialog( this ) == DialogResult.OK)
......
I have OK buttons on both modal forms that return a DialogResult of OK
and then they do formName.Close(). They both also have a Cancel
button with simply a formName.Close().
My problem is when I close the second dialog window via either a
Cancel or OK, the first one closes with it, and I would like for the
first to stay open :)
Does anyone have any ideas?
Mike