O'Reilly logo

Visual Basic 2012 Programmer's Reference by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPLICATION

The Application object represents the running application at a very high level. It provides properties and methods for starting an event loop to process Windows messages, possibly for a form. It also provides methods for controlling and stopping the event loop.

Don’t confuse the Application object with the My.Application namespace. The two have somewhat similar purposes but very different features.

The following sections describe the Application object’s most useful properties, methods, and events.

Application Properties

The following table describes the Application object’s most useful properties.

PROPERTY PURPOSE
CommonAppDataPath Returns the path where the program should store application data shared by all users. By default, this path has the form base_path\company_name\product_name\product_version. The base_path is typically C:\Documents and Settings\All Users\Application Data.
CommonAppDataRegistry Returns the registry key where the program should store application data shared by all users. By default, this path has the form HKEY_LOCAL_MACHINE\Software\company_name\product_name\product_version.
CompanyName Returns the application’s company name.
CurrentCulture Gets or sets the CultureInfo object for this thread.
CurrentInputLanguage Gets or sets the InputLanguage for this thread.
ExecutablePath Returns the fully qualified path to the file that started the execution, including the filename.
LocalUserAppDataPath Returns the path where the program ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required