November 29th, 2012, 06:21 PM
How to check which button was pressed
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.
Click Here to Expand Forum to Full Width