Help with ShowDialog command {RESOLVED}
Hi,
I have created a form and am using the ShowDialog command to show this as a modal dialog box. I have set an "OK" button and a "Cancel" button, and given them the appropriate settings to their "DialogResult" property. When I click the OK button, the dialog closes and the result is passed back to the calling process.
I do, however, have another button on the form which performs some checks and asks a question. I would like a "Yes" click on this MessageBox to then call the same code as clicking on the OK button. I have done "btnOK_click(sender, e);". This runs the code but does not close the dialog and return the "OK" to the calling code.
Does anybody know how I can do this?
Many thanks in advance,
DJ