1.9. Manipulate the Appearance of the Console

Problem

You want to control the visual appearance of the Windows console.

Solution

Use the Shared properties and methods of the System.Console class.

How It Works

The .NET Framework includes the Console class, which gives you control over the appearance and operation of the Windows console. Table 1-5 describes the properties and methods of this class that you can use to control the console's appearance.

Table 1.5. Properties and Methods to Control the Appearance of the Console
MemberDescription
Properties 
BackgroundColorGets and sets the background color of the console using one of the values from the System.ConsoleColor enumeration. Only new text written to the console will appear in this color. To ...

Get Visual Basic 2008 Recipes: A Problem-Solution Approach 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.