Open a form by cliking yes on message box
Posted: Mon Apr 30, 2012 3:08 pm
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?
Sharing, Teaching and Supporting coders of all ages and levels since 2009
https://www.codenstuff.com/forum/
if (MessageBox.Show("Open form?", "Question", MessageBoxButtons.YesNo) == DialogResult.Yes) new Form2().Show();