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 36, "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 |
---|---|
| 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 (here "C" may be replaced with a different drive letter depending on how your system is set up). |
| 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. |
| Returns the application's company name. |
| 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). |
| Gets or sets the InputLanguage for this thread. The InputLanguage object defines the layout of the keyboard for the culture. It determines ... |
Get Visual Basic® 2010 Programmer's Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.