Answers for "console.foregroundcolor."

C#
1

c# console foreground color

Console.ForegroundColor = ConsoleColor.DarkGreen;
Posted by: Guest on September-07-2020
0

c# console foreground color

//Background color
Console.BackgroundColor = ConsoleColor.Green;
//Foreground color
Console.ForegroundColor = ConsoleColor.Black;
//Reset
Console.ResetColor();
Posted by: Guest on February-20-2022

C# Answers by Framework

Browse Popular Code Answers by Language