BunifuDropDown
control from your toolbox and drag it to your form, as shown below.1. Border properties
a. BorderColor
BunifuDropdown.
It accepts both the RGB and the HEX color formats.b. BorderRadius
c. DropDownThickness
d. DisabledBorderColor
BunifuDropdown
when the control has been disabled. It supports the use of RGB or HEX color values.2. Background properties
a. BackColor
BunifuDropDown.
It accepts the use of both the HEX and RGB color formats.b. DisabledBackColor
3. Textual properties
a. Text
b. TextAlignment
c. TextLeftMargin
d. DisabledForeColor
BunifuDropdown
when the control has been disabled.4. Dropdown Indicator properties
a. IndicatorColor
b. IndicatorAlignment
c. FillIndicator
d. DisabledIndicatorColor
5. Dropdown Item properties
a. ItemBackColor
BunifuDropDown
b. ItemBorderColor
BunifuDropDown
c. ItemForeColor
BunifuDropDown
d. ItemHighlightColor
e. ItemHighlightForeColor
f. ItemHeight
g. ItemTopMargin
BunifuDropDown
Items
propertyitems
property allows you to get or set a string of items in the collection editor, which will display as a selectable item once the dropdown portion of BunifuDropdown
is shown. BunifuDropdown
programmatically, as shown below by accessing the items prop, then using the Add()
or the AddRange()
method to set the list of items. BunifuDropDown
has data binding support to work out-of-the-box with all the popular data sources like BindingList, ObservableCollection, and DataTable.DisplayMember
: allows you to set the field/column from the data source where its members will be displayed as selectable items on the dropdown portion ofBunifuDropDown
ValueMember
: sets the field/column from the data source where the members will be the actual value for the items for the displayed members.BunifuDropdown
.DisplayMember
property and select a column; for example, the column chosen is the productName
. The fields in the column will be displayed on the dropdown portion of BunifuDropdown
.ValueMember
property and select a column; for example, in this case, the chosen column is the OrderID
column. This will be the actual value for the selected field in the DisplayName, which can then be used programmatically.BunifuDropdown.
SelectedIndex
propertySelectedIndex
property allows you to get the current index position of a selected item or set the index position to pre-select the item.SelectedItem
propertySelectedItem
property allows you to get the currently selected object or set the object to pre-select the item. To get the selected item's text, use the ToString()
method which returns the text string of the Selected object.SelectedValue
propertySelectedValue
property allows you to get the current selected item's value. To get the selected item's value, use the ToString()
method which returns the value string of the Selected object. DisplayName
and ValueMember
has been provided.SelectedIndexChanged
, SelectedValueChanged
, and SelectionChangeCommitted
events in BunifuDropdown
enable you to observe selection changes in the control at runtime. All three events can be raised once an item is selected.​
​