forum

Home / DeveloperSection / Forums / Result of clicking No button on a MessageBox dialog class.

Result of clicking No button on a MessageBox dialog class.

Anonymous User 2354 24-Aug-2011
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.

c# c# 
Updated on 24-Aug-2011
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By