methods and properties to manage an application, such as methods to start and stop an application, to process Windows messages, and properties to get information about an application. This class cannot be inherited. static
Application type exposes the following members.
Adds a message filter to monitor Windows messages as they are routed to their destinations.
Processes all Windows messages currently in the message queue.
Enables visual styles for the application.
Determines whether the specified (Inherited from is equal to the current Object . Object Object.)
Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
Exits the message loop on the current thread and closes all windows on the thread.
Runs any filters against a window message, and returns a copy of the modified message.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
Gets the type of the current instance. (Inherited from Object.)
Creates a shallow copy of the current (Inherited from . Object Object.)
Initializes OLE on the current thread.
event in hosted scenarios. Idle
Registers a callback for checking whether the message loop is running in hosted environments.
Removes a message filter from the message pump of the application.
Shuts down the application and starts a new instance immediately.
Begins running a standard application message loop on the current thread.
Sets the application-wide default for the
UseCompatibleTextRendering property defined on certain controls.
Suspends or hibernates the system, or requests that the system be suspended or hibernated.
Instructs the application how to respond to unhandled exceptions.
Returns a string that represents the current object. (Inherited from Object.)
Unregisters the message loop callback made with
. RegisterMessageLoop Top
Gets a value indicating whether the caller can quit this application.
Gets the path for the application data that is shared among all users.
Gets the registry key for the application data that is shared among all users.
Gets the company name associated with the application.
Gets or sets the culture information for the current thread.
Gets or sets the current input language for the current thread.
Gets the path for the executable file that started the application, including the executable name.
Gets the path for the application data of a local, non-roaming user.
Gets a value indicating whether a message loop exists on this thread.
Gets a collection of open forms owned by the application.
Gets the product name associated with this application.
Gets the product version associated with this application.
Gets a value specifying whether the current application is drawing controls with visual styles.
Gets or sets the format string to apply to top-level window captions when they are displayed with a warning banner.
Gets the path for the executable file that started the application, not including the executable name.
Gets the path for the application data of a user.
Gets the registry key for the application data of a user.
Gets or sets whether the wait cursor is used for all open forms of the application.
Gets a value that specifies how visual styles are applied to application windows.
Occurs when the application is about to shut down.
Occurs when the application is about to enter a modal state.
Occurs when the application finishes processing and is about to enter the idle state.
Occurs when the application is about to leave a modal state.
Occurs when an untrapped thread exception is thrown.
Occurs when a thread is about to shut down. When the main thread for an application is about to be shut down, this event is raised first, followed by an
event. ApplicationExit Top