/syncfusion-winforms:syncfusion-winforms-autocompletefrom Syncfusion WinForms Controls
Guides 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.
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.
The AutoComplete control provides auto-suggestion functionality for text input fields in Windows Forms applications. It displays a dropdown list of suggestions as users type, enabling faster data entry and improved user experience with intelligent text completion.
Use the AutoComplete control when you need to:
Install-Package Syncfusion.Tools.Windows
Add reference to:
Syncfusion.Tools.Windows.dllSyncfusion.Shared.Base.dllusing System;
using System.Windows.Forms;
using Syncfusion.Windows.Forms.Tools;
namespace AutoCompleteDemo
{
public partial class Form1 : Form
{
private AutoComplete autoComplete1;
private TextBox textBox1;
public Form1()
{
InitializeComponent();
// Create AutoComplete control
autoComplete1 = new AutoComplete();
textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 20);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
// Add data source
autoComplete1.DataSource = new string[]
{
"Australia",
"Austria",
"Brazil",
"Canada",
"China"
};
autoComplete1.SetAutoComplete(textBox1, AutoCompleteModes.AutoSuggest);
// Add to form
this.Controls.Add(textBox1);
}
}
}
AutoComplete control from Toolbox to FormParentForm property to current formDataSource through Properties window or codeThe AutoComplete control can bind to various data sources:
The ParentForm property must be set to enable the control to display the dropdown suggestion list. This associates the AutoComplete with the parent form's container.
Built-in filtering automatically matches user input against the data source, displaying relevant suggestions as the user types.
📄 Read: references/getting-started.md
📄 Read: references/datasource.md
📄 Read: references/customization.md
📄 Read: references/working-with-autocomplete.md
📄 Read: references/multicolumn-dropdown.md
📄 Read: references/autocomplete-events.md
📄 Read: references/overview.md
AutoComplete autoComplete1 = new AutoComplete();
TextBox textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 20);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
autoComplete1.SetAutoComplete(textBox1, AutoCompleteModes.AutoSuggest);
// Add string data
autoComplete1.DataSource = new string[]
{
"John", "Jane", "Bob", "Alice", "Charlie"
};
this.Controls.Add(textBox1);
AutoComplete autoComplete1 = new AutoComplete();
TextBox textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 50);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
// Create DataTable
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("Email", typeof(string));
dt.Rows.Add("John Doe", "[email protected]");
dt.Rows.Add("Jane Smith", "[email protected]");
autoComplete1.DataSource = dt;
this.Controls.Add(textBox1);
AutoComplete autoComplete1 = new AutoComplete();
TextBox textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 50);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
autoComplete1.Style = AutoCompleteStyle.Default;
// Create DataTable with multiple columns
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("Country", typeof(string));
dt.Columns.Add("City", typeof(string));
dt.Rows.Add("John Doe", "USA", "New York");
dt.Rows.Add("Jane Smith", "UK", "London");
dt.Rows.Add("Bob Johnson", "Canada", "Toronto");
autoComplete1.DataSource = dt;
// Configure columns
autoComplete1.Columns.Add(new AutoCompleteDataColumnInfo("Name", 100, true));
autoComplete1.Columns.Add(new AutoCompleteDataColumnInfo("Country", 80, true));
autoComplete1.Columns.Add(new AutoCompleteDataColumnInfo("City", 80, true));
this.Controls.Add(textBox1);
AutoComplete autoComplete1 = new AutoComplete();
TextBox textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 50);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
autoComplete1.DataSource = GetDataSource();
// Attach AutoComplete to the TextBox
autoComplete1.SetAutoComplete(textBox1, AutoCompleteModes.AutoSuggest);
// Subscribe when the dropdown is displayed so the popup list is initialized
autoComplete1.DropDownDisplayed += (s, e) =>
{
var lv = autoComplete1.AutoCompletePopup.Controls[0] as VirtualListView;
if (lv != null)
{
lv.DrawItem -= ItemsListView_DrawItem;
lv.DrawItem += ItemsListView_DrawItem;
}
};
void ItemsListView_DrawItem(object sender, DrawListViewItemEventArgs e)
{
if (e.Item != null)
{
e.DrawBackground();
var text = e.Item.Text;
using (var brush = new SolidBrush(e.Item.ForeColor))
{
e.Graphics.DrawString(text, e.Item.Font ?? e.Item.ListView.Font, brush, e.Bounds);
}
e.DrawFocusRectangle();
}
}
this.Controls.Add(textBox1);
AutoComplete autoComplete1 = new AutoComplete();
TextBox textBox1 = new TextBox();
textBox1.Location = new System.Drawing.Point(20, 50);
textBox1.Size = new System.Drawing.Size(200, 20);
autoComplete1.ParentForm = this;
// Common URLs
autoComplete1.DataSource = new string[]
{
"http://www.syncfusion.com",
"http://www.google.com",
"http://www.microsoft.com",
"http://www.github.com"
};
// Enable append mode for URL completion
autoComplete1.SetAutoComplete(textBox1, AutoCompleteModes.Both);
this.Controls.Add(textBox1);
| Property | Type | Default | Description |
|---|---|---|---|
DataSource | object | null | Data source for suggestions (array, DataTable, etc.) |
ParentForm | Form | null | Parent form containing the control (required) |
AutoCompleteMode | AutoCompleteMode | Suggest | Behavior mode: None, Suggest, Append, SuggestAppend |
DisplayMember | string | "" | Property name to display from data source |
ValueMember | string | "" | Property name for internal value |
Columns | AutoCompleteDataColumnInfoCollection | - | Column configuration for multi-column display |
Style | AutoCompleteStyle | Default | Visual style of the control |
Text | string | "" | Current text value |
SelectedValue | object | null | Currently selected value |
CharacterCasing | CharacterCasing | Normal | Text casing: Normal, Upper, Lower |
LoadOnDemand | bool | false | Load suggestions on demand |
AutoCompleteControl | AutoCompletePopup | - | Access to underlying popup control |
Common events for the AutoComplete control:
Always Set ParentForm: The ParentForm property is mandatory for the dropdown to work properly
Use Appropriate Mode: Choose the right AutoCompleteMode:
Suggest: Show dropdown onlyAppend: Auto-complete text onlySuggestAppend: Both dropdown and text completionOptimize Large Datasets: Use LoadOnDemand for large data sources to improve performance
Multi-Column for Complex Data: Use multi-column display when showing related information
Handle Events Properly: Use AutoCompleteValueChanged to respond to user selections
Clear Data Appropriately: Call ResetItems() or set DataSource = null to clear suggestions
Consider Character Casing: Set CharacterCasing based on data type (e.g., Upper for state codes)
Theme Consistency: Use matching visual styles across all Syncfusion controls
The control supports multiple visual themes:
autoComplete1.Style = AutoCompleteStyle.Office2016Colorful;
Issue: Dropdown doesn't appear
ParentForm property is setDataSource contains valid dataIssue: Multi-column not displaying
AutoCompleteStyleColumns collectionIssue: Performance issues with large datasets
LoadOnDemand propertyIssue: Styling not applied
references/autocomplete-events.md (opens in a new tab)references/customization.md (opens in a new tab)references/datasource.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/multicolumn-dropdown.md (opens in a new tab)references/overview.md (opens in a new tab)references/working-with-autocomplete.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 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-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./syncfusion-winforms-banner-text-providerGuide for implementing Syncfusion WinForms BannerTextProvider (watermark text provider) control. Use this when working with watermark text, placeholder text, or hint text in editor controls. Covers setup, text modes (FocusMode/EditMode), color/font customization, and supported control types in Windows Forms applications.Other plugins' skills for the same job