It is straight-forward. Create an instance of the class and call its ShowDialog method.
ColorDialog colorDialog1 = new ColorDialog();
//fontDialog1.ShowColor = true;
if(colorDialog1.ShowDialog() != DialogResult.Cancel )
{
textBox1.ForeColor = colorDialog1.Color;
}
textBox1.Text = 'this is a test';
Share with