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

Appendix R

The Application Class

The Application class provides static properties and methods for controlling the application. This appendix contains a summary of the Application class’s most useful properties, methods, and events. Chapter 28, “Configuration and Resources,” has a bit more to say about the Application class and provides some example code.

PROPERTIES

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

PROPERTY PURPOSE
CommonAppDataPath Returns the path where the program should store application data that is 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 that is 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. The CultureInfo object specifies information about a specific culture (such as its name, writing system, and calendar, and its formats for dates, times, and numbers).
CurrentInputLanguage Gets or sets the InputLanguage for this thread. The InputLanguage object defines the layout of the keyboard for the culture. It determines how the keyboard keys are mapped to the characters in the culture’s ...

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