Change color of text in Console Application

X

XxLicherxX

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.
 
C

Chad Z. Hower aka Kudzu

XxLicherxX said:
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/
 
H

Herfried K. Wagner [MVP]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top