ComboBoxes in C#

ComboBox is a combination TextBox with a drop-down.
Its drop-down list presents preset choices.

The user can type anything into the ComboBox. Alternatively, the user can select something from the list.

ComboBox Properties

DropDownHeight: Gets or sets the height in pixels of the drop-down portion of the ComboBox.
SelectedIndex:  Gets or sets the index specifying the currently selected item. 
SelectedItem:  Gets or sets currently selected item in the ComboBox.
SelectedText: Gets or sets the text that is selected in the editable portion of a ComboBox.
SelectionLength: Gets or sets the number of characters selected in the editable portion of the combo box.
SelectionStartGets or sets the starting index of text selected in the combo box.
Sorted: Gets or sets a value indicating whether the items in the combo box are sorted.
Text: Gets or sets the text associated with this control. 
DropDownStyle: Gets or sets a value specifying the style of the combo box.(Simple, Dropdown and dropdownlist)
DropDownWidth: Gets or sets the width of the of the drop-down portion of a combo box.
Items: Gets an object representing the collection of the items contained in this ComboBox.
MaxLength: Gets or sets the number of characters a user can type into the ComboBox.

2 comments:

  1. nice work in here you help me with the if function in c# especially when coding a combox

    ReplyDelete
  2. Harrah's Cherokee Casino Site Up to $500 Bonus + 50 Free Spins
    Harrah's Cherokee Casino Resort and Hotel has a large, open casino. It's located in the heart of Great Smoky luckyclub.live Mountains of Western North Carolina. You may visit the

    ReplyDelete