تغییر رنگ محیط کنسول در سی شارپ

برای تغییر رنگ محیط کنسول میتوانید از دو خاصیت ForegroundColor (رنگ فونت) و BackgroundColor (رنگ پس زمینه) کلاس کنسول استفاده کنید :
یک برنامه کنسول ایجاد کرده و کدهای زیر را جایگزین کدهای آن کنید :

using System;

namespace changecolor
{
    class Program
    {
        static void Main(string[] args)
        {
            //
            // Change console color text into yellow and the background
            // color into dark blue. Clear the screen to repaint the 
            // console window.
            //
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.Clear();

            Console.WriteLine("Press any key to reset color.");
            Console.ReadKey(true);

            //
            // Reset the console window color to the previous setting.
            //
            Console.ResetColor();
            Console.Clear();
        }
    }
}

منبع : http://kaksouri.blogfa.com