top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to allow the user to pick Color from System Color Picker in Winforms Application ?

0 votes
282 views
How to allow the user to pick Color from System Color Picker in Winforms Application ?
posted May 27, 2016 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Just initialize the ColorDialog and call the ShowDialog method to display the Color picker . Once the color is picked , it is available in the Color property of the ColorDialog object.

System.Windows.Forms.ColorDialog ACcolorDialog = new System.Windows.Forms.ColorDialog();
if (ACcolorDialog.ShowDialog() == DialogResult.OK)
{
    MessageBox.Show(ACcolorDialog.Color.ToString());
}
answer May 27, 2016 by Shivaranjini
...