© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
15 replies
morry329#

❔ ✅ 'ConsoleColor' does not contain a definition for 'DrawingColor'

I am experimenting a sample code to create a colourful UI on console, and am getting this error:
'ConsoleColor' does not contain a definition for 'DrawingColor' and no accessible extension method 'DrawingColor' accepting a first argument of type 'ConsoleColor' could be found (are you missing a using directive or an assembly reference?)
'ConsoleColor' does not contain a definition for 'DrawingColor' and no accessible extension method 'DrawingColor' accepting a first argument of type 'ConsoleColor' could be found (are you missing a using directive or an assembly reference?)
`

My current code is here https://pastebin.com/tHvqkYLu

Could anyone kindly help me with some clues or hints? I have tried System.Drawing.Color or just the name of the color like Cyan, none of these worked.
Pastebin
UI_Console_DUP - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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

Similar Threads

❔ FreeImage does not contain a definition for GetBitmap
C#CC# / help
3y ago
❔ 'Observable' does not contain a definition for 'Create'
C#CC# / help
4y ago
MainWindow' does not contain a definition for 'Button_Click'
C#CC# / help
2y ago
Error CS1061 PropertyStore does not contain a definition for Settings
C#CC# / help
15mo ago