c# - newbie, changing foreground color in visual studio -


i've been doing 1 of tutorial , i've messed console application foreground color. how original code supposed look, monkeyed around , exit half way thru, no dark magenta color on both c# , python projects, hard read =(((

        // preserve current console text color;         consolecolor oldcolor = console.foregroundcolor;          // change console text color         console.foregroundcolor = consolecolor.gray;         console.writeline("test color");                  // cleaning          console.foregroundcolor = oldcolor; 

i've tried changing this, seemed change console color, when debug in python project, @ same time when no debag of same project in python still brings back.

console.foregroundcolor = consolecolor.gray; console.writeline("test color");

i've tried it various orders, , checking creating new projects nothing helped =(

i'm not understanding here, if need magenta, can't change:

console.foregroundcolor = consolecolor.gray;         console.writeline("test color") 

to

console.foregroundcolor = consolecolor.magenta;         console.writeline("test color") 

if want magenta.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -