My.Application Object Members
The My.Application Object provides properties, methods, and events related to the current application.
Properties
Property |
Description |
---|---|
Gets the ApplicationContext object for the current thread of a Windows Forms application. This property is available only for Windows Forms applications. |
|
Gets a collection containing the command-line arguments as strings for the current application. |
|
Gets the culture that the current thread uses for string manipulation and string formatting. |
|
Gets the current application's ClickOnce deployment object, which provides support for updating the current deployment programmatically and the on-demand download of files. |
|
Returns the My.Application.Info Object, which provides properties for getting the information about the application's assembly, such as the version number, description, and so on. |
|
Gets a Boolean that represents whether the application was network deployed. |
|
Returns the My.Application.Log Object, which provides a property and methods for writing event and exception information to the application's event log listeners. |
|
Gets or sets the minimum length of time, in milliseconds, for which the splash screen is displayed. |
|
Gets a collection of all the application's open forms. This property is available only for Windows Forms applications. |
|
Determines whether the application saves the user settings on exit. This property is available only for Windows Forms and console applications. |
|
Gets or sets the splash screen for this application. This property is available only for Windows Forms applications. |
|
Gets the culture that the current thread uses for retrieving culture-specific resources. |
Methods
Method |
Description |
---|---|
Changes the culture that the current thread uses for string manipulation and string formatting. |
|
Changes the culture that the current thread uses for retrieving culture-specific resources. |
|
Processes all Windows messages currently in the message queue. This method is available only for Windows Forms applications. |
|
Returns the value of the specified environment variable. |
|
Sets up and starts the Visual Basic Application model. This method is available only for Windows Forms applications. |
Events
Event |
Description |
---|---|
Occurs when the network availability changes. This event is available only for Windows Forms applications. |
|
Occurs when the application shuts down. This event is available only for Windows Forms applications. |
|
Occurs when the application starts. This event is available only for Windows Forms applications. |
|
Occurs when attempting to start a single-instance application and the application is already active. This event is available only for Windows Forms applications. |
|
Occurs when the application encounters an unhandled exception. This event is available only for Windows Forms applications. |