protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; }