C#C
C#8mo ago
Qvabbyte

✅ Need Help with .NET C# Console Project (visualizing) (SOLVED)

As you can see in the Image, I get following result, on first option and second I get normal result I want, but on third and so on as you can see that Background Color is even on next line and I don't really know why... I have my own Qprint Method in my dll

C#
public void Qprint(string msg, string TextColor, string BackgroundColor)
{
    Console.ForegroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), TextColor);
    Console.BackgroundColor = (ConsoleColor)Enum.Parse(typeof(ConsoleColor), BackgroundColor);
    Console.WriteLine(msg);
    Console.ResetColor();
}

which I use to print the name of menu.
(I'll send more code in other texts.)
image.png
Was this page helpful?