Windows Phone Developers

Saturday, April 14, 2012

How to change Text Color of Console (.NET/C#)

Configuring C# Console Application Title and Text Color


Console application should also look nice. There are ways to do it.

First - have a good title .. most often I have seen the Application Path etc as the title

The following snippet provides a way to customize the title of Console Application and also the TextColor

Console.Title = "Course Ware Example";
            System.Console.WriteLine("What you did on Red Letter Day");
            Console.ForegroundColor = ConsoleColor.Red ;
            string s1 = Console.ReadLine();


Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment