RGB color in Visual Studio 2017?

How do I get more colors for my form background? I have a color in RGB and I don't know how to put it beyond the colors already offered in Visual Studio 2017. I've tried searching the internet and found nothing

Options offered

Author: novic, 2018-07-05

2 answers

In the file Form1.cs (name of your form) inside public Form1() (name of your form) enter the following code:

this.BackColor = Color.FromArgb(255, 232, 232); //os 3 parâmetros são os valores RGB

With this you can change the color of your form programmatically. If you want a reference via Youtube here is .

 0
Author: Leonardo Bonetti, 2018-07-05 15:17:24

In addition to the answer so that you can change the value RGB by the programming path, in that box that you opened just type the RGB separated by ; that is automatically generated, example:

insert the description of the image here

All components that have color configuration can also be used the same strategy.

Just out of curiosity the code generated below is:

this
     .textBox1
     .ForeColor = System
        .Drawing
        .Color
        .FromArgb(((int)(((byte)(100)))), ((int)(((byte)(253)))), ((int)(((byte)(80)))));
 0
Author: novic, 2018-07-05 15:57:35