Hi all,
I have a following line of code
MessageBox.Show("Are you sure you want to download? Click 'YES' to Import (or) 'NO' to cancel", "Confirmation Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
I am trying to set it so that if the user clickes no, then it goes back to the original form and sets a button to visible and a label to invisible. I know the code to take care of the button and label, but I'm not sure how to take care of the result of the No button click.
Any help could be appreciated.
Thanks.
Result of clicking No button on a MessageBox dialog class.
2354
24-Aug-2011
James Smith
24-Aug-2011You can use DialogResult property for solving your problem. Like in following algorithm I will explain it.
Thanks.