By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

Change color of text in Console Application

P: n/a
Hello,

I have a console application that I am writing in VB.net. Is it
possible to change the color of the console text from white to
something else? I know I could call an external .bat file, but I would
rather do it in VB.net.

Any responses are greatly appreciated.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"XxLicherxX" <go********@aol.com> wrote in news:1108503871.326565.167220
@z14g2000cwz.googlegroups.com:
I have a console application that I am writing in VB.net. Is it
possible to change the color of the console text from white to
something else? I know I could call an external .bat file, but I would
rather do it in VB.net.


It used to be that the console window responded to VT-102 escape sequences.
You can try them to change the color.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 21 '05 #2

P: n/a
"XxLicherxX" <go********@aol.com> schrieb:
I have a console application that I am writing in VB.net. Is it
possible to change the color of the console text from white to
something else?


ConsoleAttributes
<URL:http://www.mentalis.org/soft/class.qpx?id=2>

ConsoleEx 1.03 - Extended Functionality for 'System.Console'
<URL:http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b76d1f08-2d79-47bd-825b-0489938aae0f>

..NET 2.0's 'Console' class will have built-in support for changing the
colors.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.