Application.Run : Application Event « Development Class « C# / C Sharp






Application.Run

 




using System.Windows.Forms;
   
class RunFormBetter
{
     public static void Main()
     {
          Form form = new Form();
   
          form.Text = "My Very Own Form";
   
          Application.Run(form);
     }
}

 








Related examples in the same category

1.Handling Application Events: OnIdle, OnThreadException, OnThreadExit
2.Handling Application Events: On Application ExitHandling Application Events: On Application Exit
3.Handling Application Events: On IdleHandling Application Events: On Idle
4.Handling Application Events: Thread ExceptionHandling Application Events: Thread Exception
5.Handling Application Events: On Thread ExitHandling Application Events: On Thread Exit
6.Installing a Message Filter
7.Removing an Installed Message Filter