How can I get more colors for the bottom of my form? I have a color in RGB and I do not know how to put it beyond the colors already offered in Visual Studio 2017. I have already tried searching the internet and found nothing
In the file Form1.cs
(name of your form) within 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 programmatically change the color of your form. If you want a referral via Youtube here .
In addition to the answer so that you can change the value RGB
by the programming path, in that box you opened just type the RGB
separated by ;
that is automatically generated,
All components that have color settings can also be used in 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)))));