Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 435.6k

How can I change the color of text and background in C#?

Oct 6 2016 2:10 PM
Hi,
I mean I want to make a windows form in C# like below:
 
this is my form
           
color: color number (0 - 255)
(for example if all of the color number get 0 except green the text will be green and the contrast color (red) will be background color) 
Note: the green and blue and red that were shown below are labels and the numbers in front of labels are text box which can be changed and the text which is green is a text box which must have contrast color with the background color .
For example: 
 
 
green    255
blue      0                                       Text
red         0

Answers (18)