© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•10mo ago•
51 replies
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

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();
}
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ I got a .net console c# project
C#CC# / help
3y ago
❔ C# Console Application - Need Help With Colors!
C#CC# / help
3y ago
Need urgent help with winforms c# .net
C#CC# / help
13mo ago
C#.NET Core Console Application with Xunit not detecting the console project as a project reference.
C#CC# / help
2y ago