.NET Framework: Getting System & Environment Information

This solution demonstrates the use of several classes that provide environment information, from the System.Environment namespace.

Featured Highlights

The sample form allows you to interact with many of the various methods and properties provided by the System.Environment namespace's objects. The Properties tab demonstrates System.Environment properties, and the Methods tab shows results from running System.Environment methods. The Special Folders tab allows you to retrieve any of the special Windows folder paths, using code that works with enumerations to fill the list of folders. You can also select a single folder, using simple code (see the form's module for details). The Environment Variables tab works in much the same way. Finally, the SystemInformation tab retrieves all the information provided by the SystemInformation object (most of which replaces the GetSystemMetrics Win32 API function).

Requirements

Requires the Trial or Release version of Visual Studio .NET Professional (or greater).

Running the Sample

Press F5 to run the sample project (this loads the sample form).  

Last Update: 7 July 2002