C
C#11mo ago
.

✅ use Console.write to set foreground color?

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

Did you find this page helpful?