Color Dialog is too easy to use.
We are creating 1 Color Dialog, 2 Butons.
One of our buttons will change color of forms, another one will change forecolor of form.
Into 1. button :
DialogResult color = colorDialog1.ShowDialog();
if (color == DialogResult.OK)
{
this.BackColor = colorDialog1.Color;
}
Into 2. button :
DialogResult color = colorDialog1.ShowDialog();
if (color == DialogResult.OK)
{
this.ForeColor = colorDialog1.Color;
}
Thats it.