Set default color : ColorDialog « GUI Windows Forms « C# / CSharp Tutorial






Set default color
using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;


public class ColorDialogInitColor{

    public static void Main(){
    ColorDialog dlg=new ColorDialog();
        dlg.Color = Color.PaleGoldenrod;
    dlg.ShowDialog();
  }

}








23.47.ColorDialog
23.47.1.ColorDialog.FullOpen = trueColorDialog.FullOpen = true
23.47.2.ColorDialog.AllFullOpen = falseColorDialog.AllFullOpen = false
23.47.3.Set default colorSet default color
23.47.4.ColorDialog With Custom ColorColorDialog With Custom Color
23.47.5.Display Color Dialog and get the selection