Application Members
Collapse the table of content
Expand the table of content

Application Members

Application overview

Public Properties

public propertystatic (Shared in Visual Basic)AllowQuit Gets a value indicating whether the caller can quit this application.
public propertystatic (Shared in Visual Basic)CommonAppDataPath Gets the path for the application data that is shared among all users.
public propertystatic (Shared in Visual Basic)CommonAppDataRegistry Gets the registry key for the application data that is shared among all users.
public propertystatic (Shared in Visual Basic)CompanyName Gets the company name associated with the application.
public propertystatic (Shared in Visual Basic)CurrentCulture Gets or sets the culture information for the current thread.
public propertystatic (Shared in Visual Basic)CurrentInputLanguage Gets or sets the current input language for the current thread.
public propertystatic (Shared in Visual Basic)ExecutablePath Gets the path for the executable file that started the application, including the executable name.
public propertystatic (Shared in Visual Basic)LocalUserAppDataPath Gets the path for the application data of a local, non-roaming user.
public propertystatic (Shared in Visual Basic)MessageLoop Gets a value indicating whether a message loop exists on this thread.
public propertystatic (Shared in Visual Basic)ProductName Gets the product name associated with this application.
public propertystatic (Shared in Visual Basic)ProductVersion Gets the product version associated with this application.
public propertystatic (Shared in Visual Basic)SafeTopLevelCaptionFormat Gets or sets the format string to apply to top-level window captions when they are displayed with a warning banner.
public propertystatic (Shared in Visual Basic)StartupPath Gets the path for the executable file that started the application, not including the executable name.
public propertystatic (Shared in Visual Basic)UserAppDataPath Gets the path for the application data of a user.
public propertystatic (Shared in Visual Basic)UserAppDataRegistry Gets the registry key for the application data of a user.

Public Methods

public methodstatic (Shared in Visual Basic)AddMessageFilter Adds a message filter to monitor Windows messages as they are routed to their destinations.
public methodstatic (Shared in Visual Basic)DoEvents

Supported by the .NET Compact Framework.

Processes all Windows messages currently in the message queue.
public methodstatic (Shared in Visual Basic)EnableVisualStyles Enables Windows XP visual styles for the application.
public methodstatic (Shared in Visual Basic)Exit

Supported by the .NET Compact Framework.

Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed.
public methodstatic (Shared in Visual Basic)ExitThread Exits the message loop on the current thread and closes all windows on the thread.
public methodstatic (Shared in Visual Basic)OleRequired Initializes OLE on the current thread.
public methodstatic (Shared in Visual Basic)OnThreadException Raises the ThreadException event.
public methodstatic (Shared in Visual Basic)RemoveMessageFilter Removes a message filter from the message pump of the application.
public methodstatic (Shared in Visual Basic)Run

Supported by the .NET Compact Framework.

Overloaded. Begins running a standard application message loop on the current thread.

Public Events

public eventstatic (Shared in Visual Basic)ApplicationExit Occurs when the application is about to shut down.
public eventstatic (Shared in Visual Basic)Idle Occurs when the application finishes processing and is about to enter the idle state.
public eventstatic (Shared in Visual Basic)ThreadException Occurs when an untrapped thread exception is thrown.
public eventstatic (Shared in Visual Basic)ThreadExit 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 ApplicationExit event.

See Also

Application Class | System.Windows.Forms Namespace

Show:
© 2016 Microsoft