Dialog Box when exiting the application?
Posted: Wed Jun 20, 2012 2:06 am
Hi..
I write the following code into my project to ask operator when exit the program but I didnt find what i must write after if cause:(
I tried Application.Exit(); but didnt work..
Thanks Already..
I write the following code into my project to ask operator when exit the program but I didnt find what i must write after if cause:(
Code: Select all
void Button2_Click(System.Object sender, System.EventArgs e)
{
DialogResult c;
c = MessageBox.Show("Programdan çıkmak istediğinizden emin misiniz ?", "Sistem Çıkış İzni",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
if (c==DialogResult.OK)
{
}
Thanks Already..