Styling and Customization in Windows Forms MultiSelectionComboBox
9 Dec 2019 / 5 minutes to read
Drop-down styling
Check box selection
Checkboxes in drop down list can be enabled for multiple items selection through the ShowCheckBox property.
this.MultiSelectionComboBox1.ShowCheckBox = true;
Me.MultiSelectionComboBox1.ShowCheckBox = True
Grouping header background
Grouping Header background color can be customized using GroupHeaderBackColor property.
The following code sample illustrates you on how to customize Group Header background color.
this.MultiSelectionComboBox1.GroupHeaderBackColor = Color.White;
Me.MultiSelectionComboBox1.GroupHeaderBackColor = Color.White
Grouping header ForeColor
Grouping Header text color can be customized using GroupHeaderForeColor property.
The following code sample illustrates you on how to customize Group Header ForeColor.
this.MultiSelectionComboBox1.GroupHeaderForeColor = Color.White;
Me.MultiSelectionComboBox1.GroupHeaderForeColor = Color.White
Grouping header separator color
Grouping Header Separator Color can be customized using GroupHeaderSeparatorColor property.
The following code sample illustrates you on how to customize Group Header Separator Color.
this.MultiSelectionComboBox1.GroupHeaderSeperatorColor = Color.White;
Me.MultiSelectionComboBox1.GroupHeaderSeperatorColor = Color.White
Item height
Drop down item height can be customized by using ItemsHeight property.
The following code sample illustrates you on how to customize drop down items height.
this.MultiSelectionComboBox1.ItemsHeight = 25;
Me.MultiSelectionComboBox1.ItemsHeight = 25
Drop-down height
Drop down window height can be customized by using DropDownHeight property.
The following code sample illustrates you on how to customize drop down window height.
this.MultiSelectionComboBox1.DropDownHeight = 125;
Me.MultiSelectionComboBox1.DropDownHeight = 125
Drop-down width
Drop down window width can be customized by using DropDownWidth property.
The following code sample illustrates you on how to customize drop down window width.
this.MultiSelectionComboBox1.DropDownWidth = 125;
Me.MultiSelectionComboBox1.DropDownWidth = 125
Maximum number of drop-down items
Maximum number of drop down items to display can be customized by using MaxDropDownItems property.
The following code sample illustrates you on how to customize number of drop down items.
this.MultiSelectionComboBox1.MaxDropDownItems = 5;
Me.MultiSelectionComboBox1.MaxDropDownItems = 5
Text block styling
Visual item back color
Visual Item background color can be customized using VisualItemBackColor property.
The following code sample illustrates you on how to customize Visual Item Back Color.
this.MultiSelectionComboBox1.VisualItemBackColor = Color.White;
Me.MultiSelectionComboBox1.VisualItemBackColor = Color.White
Visual item fore color
Visual Item Fore Color can be customized using VisualItemForeColor property.
The following code sample illustrates you on how to customize Visual Item Fore Color.
this.MultiSelectionComboBox1.VisualItemForeColor = Color.Black;
Me.MultiSelectionComboBox1.VisualItemForeColor = Color.Black
Visual item selection color
Visual Item Back Color upon selection can be customized using VisualItemSelectionColor property.
The following code sample illustrates you on how to customize Visual Item Back Color upon selection.
this.MultiSelectionComboBox1.VisualItemForeColor = Color.Black;
Me.MultiSelectionComboBox1.VisualItemForeColor = Color.Black
Visual item border color
Visual Item Border Color can be customized using VisualItemBorderColor property.
The following code sample illustrates you on how to customize Visual Item Border Color.
this.MultiSelectionComboBox1.VisualItemBorderColor = Color.Black;
Me.MultiSelectionComboBox1.VisualItemBorderColor = Color.Black
Delimiter character
Upon selecting multiple items from its drop down list, each selected item is separated by user defined delimiter character.
The following code sample illustrates you on how to set delimiter character.
this.MultiSelectionComboBox1.DelimiterChar = ",";
Me.MultiSelectionComboBox1.DelimiterChar = ","
NOTE
Delimiter character needs to be single special characters like “,” “.”