RGB Color Combination

Hi,

How to apply RGB Color combination to any control forecolor or background colour. Is there any direct method is available for this




Answer this question

RGB Color Combination

  • JDeas

    You can use the Color.FromArgb method to create a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.


    int red = 50;
    int green = 50;
    int blue = 50;
    control.BackColor = Color.FromArgb( red, green, blue );




  • RGB Color Combination