/// <summary> /// Initializes a new instance of the <see cref="ColorComboBox"/> class with default settings. /// </summary> public ColorComboBox() { FCombo = new ComboBox(); FDropDown = new ColorDropDown(); FDropDown.ColorSelected += new EventHandler(FDropDown_ColorSelected); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); }
public ToolStripColorButton() { FDropDown = new ColorDropDown(); FDropDown.ColorSelected += new EventHandler(FDropDown_ColorSelected); DropDown = FDropDown; }