Application Exit event : Application : Development C# Examples


C# Examples » Development » Application »

 

Application Exit event









    
using  System;
using  System.Windows.Forms;

public  class  MainClass  :  System.Windows.Forms.Form
{
    public  MainClass()
    {
        Application.ApplicationExit  +=  new  EventHandler(Form_OnExit);
    }

    [STAThread]
    static  void  Main()  
    {
        Application.Run(new  MainClass());
    }
    private  void  Form_OnExit(object  sender,  EventArgs  evArgs)  
    {
        Console.WriteLine("Exit");
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Application