Click here to Skip to main content
15,895,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there.
I am wanting to know if it is possible to code something where I can (for example) input a word such as lets say 'blue' into my program and get a specified/set colour to display in a picture box?

So can i maybe create a method or class for 'blue' that will have coding in it to set the colour blue to display in a picture box/display box?

Thank you in advance for any advice.

What I have tried:

I haven't tried much I just want to know if it is possible to code such a thing.
Posted
Updated 20-Aug-18 11:48am

1 solution

Quote:
I haven't tried much I just want to know if it is possible to code such a thing.

Short answer: Yes.
You need a list with color names and color codes.
When user input color name, you need to match in list and apply color code in picture box/display box/canva.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900