Skip to main content

Changing the Console Colors in .NET 2.0

To change the Console Color, use:
Console.ForegroundColor = ConsoleColor.Red;
To change it back to what it was before:

Console.ResetColor();

To make some default values: 
static ConsoleColor ErrorColor = ConsoleColor.Red;
static ConsoleColor WarningColor = ConsoleColor.Yellow;

Comments