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; _colourPlate = new Office2007MenuHelper(); _colourPlate.ColourPlate.SelectedColourChanged += new EventHandler(colourPlate_SelectedColourChanged); }
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; // lsu: modified !! this.DropDownHeight = 1; //Font fnt = new Font(this.Font.Name, 7); //this.Font = fnt; // end modification _colorPlate = new Office2007MenuHelper(); _colorPlate.ColorPlate.SelectedColorChanged += new EventHandler(colorPlate_SelectedColorChanged); }