public CheckBoxComboBoxListControl(CheckBoxComboBox owner) : base() { DoubleBuffered = true; _checkBoxComboBox = owner; BackColor = SystemColors.Window; // AutoScaleMode = AutoScaleMode.Inherit; AutoScroll = true; 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); }
public CheckBoxComboBoxItem(CheckBoxComboBox owner, object comboBoxItem) : base() { DoubleBuffered = true; _CheckBoxComboBox = owner; _ComboBoxItem = comboBoxItem; if (_CheckBoxComboBox.DataSource != null) { AddBindings(); } else { Text = comboBoxItem.ToString(); } }