Application

Application

System. Windows .Forms (system. windows .forms.dll) sealed class

This class provides a variety of static methods to start message processing for a Windows Forms application, and to retrieve information about the execution environment of the current application, including such useful details as the shared and user data paths, registry keys, locale/culture settings, and others.

You can also get notifications of and some control over application startup and shutdown, although the exit notification is not signaled if you use the parameterless version of Run() .

Finally, there is a facility to install and remove message filters for your application with AddMessageFilter() and RemoveMessageFilter() . See IMessageFilter for information on this feature.

 public sealed class  Application  {  // Public Static Properties  public static bool  AllowQuit  {get; }    public static string  CommonAppDataPath  {get; }    public static RegistryKey  CommonAppDataRegistry  {get; }    public static string  CompanyName  {get; }    public static CultureInfo  CurrentCulture  {set; get; }    public static InputLanguage  CurrentInputLanguage  {set; get; }    public static string  ExecutablePath  {get; }    public static string  LocalUserAppDataPath  {get; }    public static bool  MessageLoop  {get; }    public static string  ProductName  {get; }    public static string  ProductVersion  {get; }    public static string  SafeTopLevelCaptionFormat  {set; get; }    public static string  StartupPath  {get; }    public static string  UserAppDataPath  {get; }    public static RegistryKey  UserAppDataRegistry  {get; }  // Public Static Methods  public static void  AddMessageFilter  (IMessageFilter  value  );    public static void  DoEvents  ();    public static void  Exit  ();    public static void  ExitThread  ();    public static ApartmentState  OleRequired  ();    public static void  OnThreadException  (Exception  t  );    public static void  RemoveMessageFilter  (IMessageFilter  value  );    public static void  Run  ();    public static void  Run  (ApplicationContext  context  );    public static void  Run  (Form  mainForm  );  // Events  public event EventHandler  ApplicationExit  ;    public event EventHandler  Idle  ;    public event ThreadExceptionEventHandler  ThreadException  ;    public event EventHandler  ThreadExit  ; } 


. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net