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