C
C#12mo ago
.

✅ use Console.write to set foreground color?

how do i use Console.write to set foreground color?
6 Replies
DeliBey
DeliBey12mo ago
Do you want to set Console foreground color ?
.
.OP12mo ago
yes
DeliBey
DeliBey12mo ago
No description
DeliBey
DeliBey12mo ago
As you see it expects ConsoleColor
Console.ForegroundColor = ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.Red;
DeliBey
DeliBey12mo ago
No description
DeliBey
DeliBey12mo ago
also you need to output something to see it's effect like Console.WriteLine("Hello"); etc

Did you find this page helpful?