string msg= "Do you want to close the application?";
string caption = "Confirm...";
if ( MessageBox.Show( msg, caption, MessageBoxButtons.YesNo )
== DialogResult.No )
e.Cancel = true;
Loading
string msg= "Do you want to close the application?";
string caption = "Confirm...";
if ( MessageBox.Show( msg, caption, MessageBoxButtons.YesNo )
== DialogResult.No )
e.Cancel = true;
Join the conversation! Your thoughts help the community grow.