EXIT CODE

Featured by

INTRODUCTION TO C#

Microsoft’s .NET and C# opens a whole New World of possibilities. There are many people in the industry, which see a great future to the .NE...

22/01/2018

ExIT Codes in C#

if (MessageBox.Show(" Are you sure you want to Exit?", "closing session ?", MessageBoxButtons.YesNo) != DialogResult.Yes)
            {
                //e.Cancel = true;  
            }
            else
            {
                btnexit.Focus();
           
                Application.Exit();
              
            }

No comments:

Post a Comment