|
-
Nov 10th, 2003, 10:20 AM
#1
Thread Starter
Addicted Member
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
Last edited by DJ_Catboy; Nov 12th, 2003 at 07:42 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|