/syncfusion-winforms:syncfusion-winforms-comboboxbasefrom Syncfusion WinForms Controls
Guides implementation of Syncfusion WinForms ComboBoxBase control with flexible, pluggable ListControl architecture. Use this when working with advanced combo box implementations requiring custom ListControl-derived controls, CheckedListBox integration, or multi-column dropdowns with GridListControl.
Ships in Syncfusion WinForms Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guides the implementation of the Syncfusion ComboBoxBase control for Windows Forms applications. ComboBoxBase provides a flexible alternative to the standard combo box by separating the edit portion from the drop-down list, enabling pluggable ListControl architecture.
Use this skill when you need to:
Note: If you need a Framework combo box-like object model, consider using ComboBoxAdv (based on ComboBoxBase but with identical object model).
The ComboBoxBase control separates the edit (TextBox) portion from the drop-down list portion, making the architecture powerful and flexible. You can plug in any ListControl-derived class (ListBox, CheckedListBox, GridListControl) using the ListControl property.
Key Capabilities:
Architecture Differences:
📄 Read: references/getting-started.md
📄 Read: references/listcontrol-architecture.md
📄 Read: references/event-handling.md
📄 Read: references/appearance-behavior.md
📄 Read: references/advanced-scenarios.md
Step 1: Add ComboBoxBase to Form
1. Open your WinForms project in Visual Studio
2. Drag ComboBoxBase from Toolbox to Form
3. Drag ListBox from Toolbox to Form
4. In ComboBoxBase Properties, set ListControl = listBox1
Basic Implementation:
using Syncfusion.Windows.Forms.Tools;
using System.Windows.Forms;
public partial class Form1 : Form
{
private ComboBoxBase comboBoxBase1;
private ListBox listBox1;
public Form1()
{
InitializeComponent();
SetupComboBoxBase();
}
private void SetupComboBoxBase()
{
// Create ComboBoxBase and ListBox
comboBoxBase1 = new ComboBoxBase();
listBox1 = new ListBox();
// Configure ComboBoxBase
comboBoxBase1.Size = new Size(200, 25);
comboBoxBase1.Location = new Point(20, 20);
comboBoxBase1.ListControl = listBox1; // Connect ListBox
// Add items to ListBox
listBox1.Items.AddRange(new object[] {
"Option 1",
"Option 2",
"Option 3",
"Option 4"
});
// Add to form
this.Controls.Add(listBox1);
this.Controls.Add(comboBoxBase1);
}
}
VB.NET:
Imports Syncfusion.Windows.Forms.Tools
Imports System.Windows.Forms
Public Class Form1
Private comboBoxBase1 As ComboBoxBase
Private listBox1 As ListBox
Public Sub New()
InitializeComponent()
SetupComboBoxBase()
End Sub
Private Sub SetupComboBoxBase()
' Create ComboBoxBase and ListBox
comboBoxBase1 = New ComboBoxBase()
listBox1 = New ListBox()
' Configure ComboBoxBase
comboBoxBase1.Size = New Size(200, 25)
comboBoxBase1.Location = New Point(20, 20)
comboBoxBase1.ListControl = listBox1 ' Connect ListBox
' Add items to ListBox
listBox1.Items.AddRange(New Object() {
"Option 1",
"Option 2",
"Option 3",
"Option 4"
})
' Add to form
Me.Controls.Add(listBox1)
Me.Controls.Add(comboBoxBase1)
End Sub
End Class
// Create data source
List<string> states = new List<string>
{
"California", "Texas", "Florida", "New York"
};
// Set DataSource on ListBox (not ComboBoxBase)
listBox1.DataSource = states;
comboBoxBase1.ListControl = listBox1;
// Use CheckedListBox for multi-select
CheckedListBox checkedListBox1 = new CheckedListBox();
checkedListBox1.Items.AddRange(new object[] {
"Item 1", "Item 2", "Item 3", "Item 4"
});
comboBoxBase1.ListControl = checkedListBox1;
// Handle DropDownCloseOnClick to prevent premature closing
comboBoxBase1.DropDownCloseOnClick += (sender, e) => {
e.Cancel = true; // Keep dropdown open while selecting
};
// Update text with checked items
checkedListBox1.ItemCheck += (sender, e) => {
// Build text from checked items
var checkedItems = checkedListBox1.CheckedItems.Cast<object>();
comboBoxBase1.TextBox.Text = string.Join(", ", checkedItems);
};
public class Employee
{
public int Id { get; set; }
public string Name { get; set; }
public override string ToString() => Name;
}
// Create employee list
List<Employee> employees = new List<Employee>
{
new Employee { Id = 1, Name = "John Doe" },
new Employee { Id = 2, Name = "Jane Smith" },
new Employee { Id = 3, Name = "Bob Johnson" }
};
listBox1.DataSource = employees;
listBox1.DisplayMember = "Name"; // Display property
listBox1.ValueMember = "Id"; // Value property
comboBoxBase1.ListControl = listBox1;
| Property | Type | Description |
|---|---|---|
ListControl | IListControl | Gets or sets the ListControl-derived control for dropdown |
TextBox | TextBox | Gets the TextBox portion of the control |
PopupContainer | PopupControlContainer | Gets the popup container for dropdown |
Style | ComboBoxStyle | Gets or sets the visual style |
FlatStyle | FlatStyle | Gets or sets the flat style appearance |
Size | Size | Gets or sets the control size |
| Property | Type | Description |
|---|---|---|
Items | ObjectCollection | Collection of items in the list |
DataSource | object | Data source for the list |
DisplayMember | string | Property to display for objects |
ValueMember | string | Property to use as value |
SelectedItem | object | Currently selected item |
SelectedIndex | int | Currently selected index |
SelectionMode | SelectionMode | Single or multiple selection |
| Event | Description |
|---|---|
SelectionChangedCommitted | Fires when selection is committed by user action |
DropDownCloseOnClick | Fires when dropdown is about to close on click (cancellable) |
DropDown | Fires when dropdown is opening |
Note: Events like SelectedIndexChanged are handled on the ListControl (ListBox), not ComboBoxBase.
When you need a basic dropdown with items, use standard ListBox:
When users need to select multiple items, use CheckedListBox:
When displaying tabular data in dropdown, use GridListControl:
When built-in controls are insufficient, create custom ListControl:
Choose ComboBoxBase over standard combo box when:
Choose standard combo box when:
Choose ComboBoxAdv when:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winformsOther plugins' skills for the same job
113 skills in this plugin
/syncfusion-winforms-ai-assistviewGuide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences./syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events.