Gets or sets the index specifying the currently selected item. Gets or sets the maximum number of characters a user can enter in the editable area of the combo box. Gets or sets the maximum number of items to be displayed in the drop-down part of the combo box. Gets an object representing the collection of the items contained in this ComboBox. Gets or sets the height of an item in the combo box. Gets or sets the appearance of the ComboBox. Gets or sets a value indicating whether the combo box is displaying its drop-down portion. Gets or sets the width of the of the drop-down portion of a combo box.
Gets or sets a value specifying the style of the combo box. Gets or sets the height in pixels of the drop-down portion of the ComboBox. Gets or sets the data source for this ComboBox. Gets the CurrencyManager associated with this control. Gets or sets a value specifying the source of complete strings used for automatic completion. Gets or sets an option that controls how automatic completion works for the ComboBox.
Specialized.StringCollection to use when the AutoCompleteSourceproperty is set to CustomSource. Gets or sets a custom System.Collections. Gets a value indicating whether the list enables selection of list items. The following are some of the commonly used properties of the ComboBox control − Sr.No.
This opens the String Collection Editor dialog box, where you can enter the values one at a line. Click the ellipses (.) button next to the Items property. To add items to a ComboBox, select the ComboBox control and go to the properties window for the properties of this control. You can populate the list box items either from the properties window or at runtime. Let's create a combo box by dragging a ComboBox control from the Toolbox and dropping it on the form. It is a combination of a text box in which the user enters an item and a drop-down list from which the user selects an item. The ComboBox control is used to display a drop-down list of various items.