This question already has an answer here:
Ive searched the Web, but i cant seem to find the solution. I want my whole console application window to be a specific color, for example blue. How do I do that?
This question already has an answer here:
Ive searched the Web, but i cant seem to find the solution. I want my whole console application window to be a specific color, for example blue. How do I do that?
You can set
Console.BackgroundColor
property toConsoleColor
enumeration..And you can use
Console.ForegroundColor
property forConsole.WriteLine("This string is blue!");
The OP question was asking for how to set the entire background color to blue. None of the other samples shows this correctly. Here's how:
Simply set the background color and call
Console.Clear()
: