Exemple #1
0
 /// <param name="owner">A reference to the LxzhComboBox.</param>
 /// <param name="text">A reference to the item in the ComboBox.Items that this object is extending.</param>
 public LxzhComboBoxItem(LxzhComboBox owner, string text)
     : base()
 {
     InitializeComponent();
     DoubleBuffered = true;
     lxzhComboBox   = owner;
     Text           = text;
 }
Exemple #2
0
 public LxzhListControl(LxzhComboBox owner)
     : base()
 {
     InitializeComponent();
     DoubleBuffered             = true;
     lxzhComboBox               = owner;
     lxzhComboBox.ItemsChanged += new EventHandler(ListItem_Changed);
     ScrollBar.Scroll          += new EventHandler(scrollBar_Scroll);
     comboBoxItems              = new List <LxzhComboBoxItem>();
     BackColor    = Color.Transparent;
     AutoScroll   = false;
     ResizeRedraw = true;
     // if you don't set this, a Resize operation causes an error in the base class.
     MinimumSize = new Size(1, 1);
     MaximumSize = new Size(500, 500);
 }