public static void UnCheckAll(PresentationControls.CheckBoxComboBox cbb) { foreach (CheckBoxComboBoxItem item in cbb.CheckBoxItems) { item.Checked = false; } }
internal CheckBoxComboBox CreateComboBoxForFilter(int pointY, string Text) { CheckBoxComboBox combo = new CheckBoxComboBox(); combo.Location = new Point(pointY, 70); combo.Name = Text; combo.DropDownStyle = ComboBoxStyle.DropDownList; combo.DropDownHeight = 500; return combo; }
public CheckBoxComboBoxListControl(CheckBoxComboBox owner) : base() { DoubleBuffered = true; _CheckBoxComboBox = owner; _Items = new CheckBoxComboBoxItemList(_CheckBoxComboBox); BackColor = SystemColors.Window; 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); }
/// <summary> /// /// </summary> /// <param name="owner">A reference to the CheckBoxComboBox.</param> /// <param name="comboBoxItem">A reference to the item in the ComboBox.Items that this object is extending.</param> public CheckBoxComboBoxItem(CheckBoxComboBox owner, object comboBoxItem) : base() { DoubleBuffered = true; _CheckBoxComboBox = owner; _ComboBoxItem = comboBoxItem; if (_CheckBoxComboBox.DataSource != null) { AddBindings(); } else { Text = comboBoxItem.ToString(); } }
/// <summary> /// /// </summary> /// <param name="owner">A reference to the CheckBoxComboBox.</param> /// <param name="comboBoxItem">A reference to the item in the ComboBox.Items that this object is extending.</param> public CheckBoxComboBoxItem(CheckBoxComboBox owner, object comboBoxItem) : base() { DoubleBuffered = true; _CheckBoxComboBox = owner; _ComboBoxItem = comboBoxItem; if (_CheckBoxComboBox.DataSource != null) { AddBindings(); } else { Text = comboBoxItem.ToString(); } this.Height = 18; this.Padding = new Padding(4, 0, 0, 0); }
public CheckBoxComboBoxItemList(CheckBoxComboBox checkBoxComboBox) { _CheckBoxComboBox = checkBoxComboBox; }