Mega Code Archive

 
Categories / C# / Development Class
 

Change console foreground color and background color

using System; public class Test{    static void Main(string[] args){       Console.Title = "Standard Console";       Console.ForegroundColor = ConsoleColor.Red;       Console.BackgroundColor = ConsoleColor.Green;       Console.WriteLine("Press Enter to change the Console's appearance.");       Console.ReadLine();   } }