Export (0) Print
Expand All

Application Methods

The Application type exposes the following members.

  Name Description
Public method Static member AddMessageFilter Adds a message filter to monitor Windows messages as they are routed to their destinations.
Public method Static member DoEvents Processes all Windows messages currently in the message queue.
Public method Static member EnableVisualStyles Enables visual styles for the application.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Static member Exit() Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Public method Static member Exit(CancelEventArgs) Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Public method Static member ExitThread Exits the message loop on the current thread and closes all windows on the thread.
Public method Static member FilterMessage Runs any filters against a window message, and returns a copy of the modified message.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member OleRequired Initializes OLE on the current thread.
Public method Static member OnThreadException Raises the ThreadException event.
Public method Static member RaiseIdle Raises the Idle event in hosted scenarios.
Public method Static member RegisterMessageLoop Registers a callback for checking whether the message loop is running in hosted environments.
Public method Static member RemoveMessageFilter Removes a message filter from the message pump of the application.
Public method Static member Restart Shuts down the application and starts a new instance immediately.
Public method Static member Run() Begins running a standard application message loop on the current thread, without a form.
Public method Static member Run(ApplicationContext) Begins running a standard application message loop on the current thread, with an ApplicationContext.
Public method Static member Run(Form) Begins running a standard application message loop on the current thread, and makes the specified form visible.
Public method Static member SetCompatibleTextRenderingDefault Sets the application-wide default for the UseCompatibleTextRendering property defined on certain controls.
Public method Static member SetSuspendState Suspends or hibernates the system, or requests that the system be suspended or hibernated.
Public method Static member SetUnhandledExceptionMode(UnhandledExceptionMode) Instructs the application how to respond to unhandled exceptions.
Public method Static member SetUnhandledExceptionMode(UnhandledExceptionMode, Boolean) Instructs the application how to respond to unhandled exceptions, optionally applying thread-specific behavior.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member UnregisterMessageLoop Unregisters the message loop callback made with RegisterMessageLoop.
Top
Show:
© 2014 Microsoft