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 = true | |||
23.47.2. | ColorDialog.AllFullOpen = false | |||
23.47.3. | Set default color | |||
23.47.4. | ColorDialog With Custom Color | |||
23.47.5. | Display Color Dialog and get the selection |