-
November 29th, 2012, 07:21 PM
#1
How to check which button was pressed
Hi all,
I have a Main Dialog it has 3 buttons; Install, Support and Exit
When the Install button is pressed a License Agreement Dialog is opened using .ShowDialog();
This Dialog has two buttons Install and Cancel.
(The Install button is enabled using two radio buttons (accept and do not accept))
But I use Close(); on both the Cancel and the Install button.
So back in the main menu I need to know if the Install button was presssed or if the cancel button was hit.
I can use a global int or bool flag, but that is not C# like.
How can this be done.
regards,
Gerwin
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
|