1. Start up a new Console Application project (File -> New Project -> Console Application -> OK)
2. Go into the main function in Program.cs
3. And use this code:
Console.BackgroundColor = ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.Black;
This changes the Background colour to Red and the Foreground colour to Black.
You can then test it by putting in this code:
Console.WriteLine("Colour Test");
and then run it.You can replace the Red and Black with any of the colour's I have listed below.
Enjoy
Black
Blue
Green
Cyan
DarkBlue
DarkGreen
DarkCyan
DarkRed
DarkYellow
DarkMagenta
DarkGray
Red
White
Yellow
Gray
Magenta


Sign In
Create Account


Back to top










