change background of console
C#
3
Posts
2
Posters
0
Views
1
Watching
-
how can i change the background color of console window not only of text area but of hole background when we run the app. AMit Katiyar
If your using .NET 2.0, all this has been made very easy for you. eg:
Console.BackgroundColor = ConsoleColor.Blue; Console.Clear();
If not, then its down the old InterOp path I'm afraid. Regards, Rob Philpott. -
how can i change the background color of console window not only of text area but of hole background when we run the app. AMit Katiyar
oh yes, there's this: http://www.codeproject.com/csharp/console_apps__colour_text.asp[^] to get your started if you're not on .NET 2.0 This article shows you how to change the foreground colour, and would be easy to modify to change the background. Regards, Rob Philpott.