private void OnInit() { SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.Items.Add("Color"); this.SelectedIndex = 0; this.DrawMode = DrawMode.OwnerDrawFixed; this.DropDownStyle = ComboBoxStyle.DropDownList; _colorPlate = new Office2007MenuHelper(); _colorPlate.ColorPlate.SelectedColorChanged += new EventHandler(colorPlate_SelectedColorChanged); }
private void OnInit() { SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.Items.Add("Color"); this.SelectedIndex = 0; this.DrawMode = DrawMode.OwnerDrawFixed; this.DropDownStyle = ComboBoxStyle.DropDownList; _colorPlate = new Office2007MenuHelper(); _colorPlate.ColorPlate.SelectedColorChanged += new EventHandler(colorPlate_SelectedColorChanged); }