Page 1 of 1

Open a form by cliking yes on message box

Posted: Mon Apr 30, 2012 3:08 pm
by hortencio
I would like to appear a message asking if i want open a form or no when i click on the button that a crieted for opening such form. how can i do?

Re: Open a form by cliking yes on message box

Posted: Mon Apr 30, 2012 3:14 pm
by MrAksel
Code: Select all
if (MessageBox.Show("Open form?", "Question", MessageBoxButtons.YesNo) == DialogResult.Yes) new Form2().Show();