Loading...
Loading...
Guide for implementing the Syncfusion Windows Forms MultiSelectionComboBox control — a ComboBox with multi-item selection, auto-suggestion, and tag-style visual items. Use this skill when the user mentions MultiSelectionComboBox, WinForms multi-select combo, or Syncfusion.Windows.Forms.Tools.MultiSelectionComboBox, or needs a combo box that allows selecting multiple items in a Windows Forms application. Applies when configuring display modes, binding data sources, styling visual items, handling SelectedItemCollectionChanged, or setting AutoSuggestMode.
npx skill4agent add syncfusion/winforms-ui-components-skills syncfusion-winforms-multiselect-comboboxDataSourceDisplayMemberValueMemberDataTableDataViewArrayListAutoSuggestModeButtonStyleUseVisualStyleSizeDisplayMode.VisualItemDisplayMode.DelimiterModeDisplayMode.NormalModeAutoSizeModeVisualItemInputModeArrayListDataViewDataTableDataSourceDisplayMemberValueMemberDataSourceChangedShowCheckBoxShowGroupsBeginMatchDisabledSelectedItemCollectionChangedVisualItemCollectionChangedAutoSizeModeChangedDataSourceChangedDropDownusing Syncfusion.Windows.Forms.Tools;
using Syncfusion.Windows.Forms;
// Create and configure the control
var combo = new MultiSelectionComboBox();
combo.ButtonStyle = ButtonAppearance.Metro;
combo.UseVisualStyle = true;
combo.Size = new System.Drawing.Size(250, 30);
combo.DisplayMode = DisplayMode.VisualItem;
// Add items manually
combo.Items.AddRange(new object[] { "Apple", "Banana", "Cherry", "Date", "Elderberry" });
this.Controls.Add(combo);Imports Syncfusion.Windows.Forms.Tools
Imports Syncfusion.Windows.Forms
Dim combo As New MultiSelectionComboBox()
combo.ButtonStyle = ButtonAppearance.Metro
combo.UseVisualStyle = True
combo.Size = New System.Drawing.Size(250, 30)
combo.DisplayMode = DisplayMode.VisualItem
combo.Items.AddRange(New Object() {"Apple", "Banana", "Cherry"})
Me.Controls.Add(combo)DataTable dt = new DataTable();
dt.Columns.Add("ID");
dt.Columns.Add("Name");
dt.Rows.Add("1", "Alice");
dt.Rows.Add("2", "Bob");
dt.Rows.Add("3", "Carol");
combo.DataSource = dt;
combo.DisplayMember = "Name";
combo.ValueMember = "ID";
combo.DisplayMode = DisplayMode.VisualItem;combo.SelectedItemCollectionChanged += (sender, e) =>
{
if (e.Action == Actions.Added)
Console.WriteLine("Added: " + e.SelectedItems[0]);
else
Console.WriteLine("Removed: " + e.SelectedItems[0]);
};combo.Style = MultiSelectionComboBoxStyle.Office2016Colorful;| Property | Purpose |
|---|---|
| VisualItem / DelimiterMode / NormalMode |
| Begin / Match / Disabled |
| Vertical / Horizontal / None |
| Show checkboxes in the dropdown |
| Group items by initial character |
| Separator character (Delimiter mode) |
| Bind to ArrayList, DataView, DataTable |
| Property name shown in the control |
| Property used as the actual value |
| Visual theme (Office2016Colorful, etc.) |
| DisplayMemberMode / ValueMemberMode / VisualItemMode |