Using Classes

Many classes included in the Framework class library (FCL) can be used within your application. Many of these classes provide methods, properties, and events that are used to perform specific tasks in your application.

The Application Class

An Application class provides properties that the code can use to obtain information about the current application (see Table 1.1), as well as provide methods to start and close an application, and to process windows messages (see Table 1.2).

Table 1.1. Important Static Properties of the Application Class
PropertyDescription
CompanyNameCompany name associated with the application
CurrentCultureCulture information for the current thread
CurrentInputLanguageInput language for the current thread
ExecutablePath ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) 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.