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


Amit GuptaRank #190 · 12.8K reputationPosted Oct 9, 2016, 10:34 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 10, 2016, 8:21 AM EDT
Muhammad NadeemRank #2,940 · 490 reputationPosted Oct 9, 2016, 8:53 PM EDT
In WinForms and WebForms you can do:
Amit GuptaRank #190 · 12.8K reputationPosted Oct 10, 2016, 10:21 AM EDT
Roshan GuragainRank #3,873 · 383 reputationPosted Oct 20, 2016, 3:32 AM EDT
Roshan GuragainRank #3,873 · 383 reputationPosted Oct 20, 2016, 3:33 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 6, 2016, 10:34 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 7, 2016, 11:40 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 10, 2016, 8:00 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 10, 2016, 9:21 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 10, 2016, 9:41 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 10, 2016, 11:02 AM EDT
Joe WilsonRank #631 · 3.8K reputationPosted Oct 20, 2016, 12:08 PM EDT
Pradeep ShetRank #595 · 4K reputationPosted Oct 6, 2016, 10:29 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Oct 6, 2016, 5:42 PM EDT
Please go through below article-
http://www.codeproject.com/Articles/16565/Determining-Ideal-Text-Color-Based-on-Specified-Ba
Bikesh SrivastavaRank #109 · 20.3K reputationPosted Oct 6, 2016, 7:47 PM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted Oct 7, 2016, 10:37 PM EDT
Guest UserRank #2,002 · 726 reputationPosted Oct 10, 2016, 9:09 PM EDT