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

Joe WilsonPosted Oct 20, 2016, 4:08 PM
Roshan GuragainPosted Oct 20, 2016, 7:33 AM
label1.ForeColor=System.Drawing.Color.Pink;wherelabel1 is the name of labelon the formRoshan GuragainPosted Oct 20, 2016, 7:32 AM
label1.ForeColor=System.Drawing.Color.Pink;wherelabel1 is the name of labelon the formGuest UserPosted Oct 11, 2016, 1:09 AM
Joe WilsonPosted Oct 10, 2016, 3:02 PM
Amit GuptaPosted Oct 10, 2016, 2:21 PM
Joe WilsonPosted Oct 10, 2016, 1:41 PM
Joe WilsonPosted Oct 10, 2016, 1:21 PM
Amit GuptaPosted Oct 10, 2016, 12:21 PM
Joe WilsonPosted Oct 10, 2016, 12:00 PM
Amit GuptaPosted Oct 10, 2016, 2:34 AM
Muhammad NadeemPosted Oct 10, 2016, 12:53 AM
In WinForms and WebForms you can do:
Munesh SharmaPosted Oct 8, 2016, 2:37 AM
Joe WilsonPosted Oct 7, 2016, 3:40 PM
Bikesh SrivastavaPosted Oct 6, 2016, 11:47 PM
Midhun TpPosted Oct 6, 2016, 9:42 PM
Please go through below article-
http://www.codeproject.com/Articles/16565/Determining-Ideal-Text-Color-Based-on-Specified-Ba
Joe WilsonPosted Oct 6, 2016, 2:34 PM
Pradeep ShetPosted Oct 6, 2016, 2:29 PM