ColorDialog.AnyColor : ColorDialog « System.Windows.Forms « C# / C Sharp by API






ColorDialog.AnyColor

 

  using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  using System.Data;

  public class Test
  {
    static void Main() 
    {
        System.Windows.Forms.ColorDialog colorDlg = new System.Windows.Forms.ColorDialog();    
      colorDlg.AnyColor = true;
      colorDlg.ShowHelp = true;  

      if (colorDlg.ShowDialog() != DialogResult.Cancel)
      {
        string strARGB = colorDlg.Color.ToString();
        Console.WriteLine(strARGB);
      }

    }

  }

   
  








Related examples in the same category

1.ColorDialog.AllowFullOpen
2.ColorDialog.Color
3.ColorDialog.CustomColor
4.ColorDialog.FullOpen
5.ColorDialog.MouseDown
6.ColorDialog.ShowDialog()
7.ColorDialog.ShowHelp