Application Class |
System. Windows .Forms
No
The Application object provides a diverse range of functionality, including support for multithreaded programming, access to the system registry, and support for subclassing (intercepting messages sent to application windows). It also includes a variety of informational functions, such as properties to retrieve the company name, to retrieve the application's executable path , and to retrieve the application's name and version.
Application objects can be created as follows :
Dim obj As Application
However, because all of the Application object's members are shared, you do not need to instantiate the Application object to access its properties and methods . Hence, you can retrieve the executable path of your application, for instance, with the code fragment:
Dim sPath As String = Application.ExecutablePath
Application class members marked with a plus sign (+) are discussed in detail in their own entries.
Application.CompanyName Property, Application.DoEvents Method, Application.ExecutablePath Property, Application.ProductName Property, Application.ProductVersion Property