MCPInstall

syncfusion-winforms-checkbox

Guide to implement and customize the Syncfusion WinForms CheckBoxAdv control. Use this when working with advanced checkbox controls featuring three states, gradient backgrounds, custom borders, shadow text, or flexible alignment in Windows Forms applications.

Installs
79
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-checkbox
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-winforms-checkbox automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing CheckBoxAdv in Windows Forms

When to Use This Skill

Use this skill whenever the user needs to:

  • Implement advanced checkbox controls in Windows Forms applications
  • Create checkboxes with checked, unchecked, and indeterminate states
  • Apply gradient backgrounds, custom borders, or shadow text to checkboxes
  • Configure checkbox and text alignment independently
  • Associate integer or string values with checkbox states
  • Handle checkbox state change events
  • Bind CheckBoxAdv controls to SQL database fields
  • Customize checkbox appearance beyond standard Windows Forms controls
  • Implement three-state checkboxes with tristate support
  • Create read-only or auto-sized checkbox controls

Component Overview

The CheckBoxAdv is an advanced checkbox control for Windows Forms that extends the standard CheckBox with enhanced visual and functional capabilities. It supports gradient backgrounds, custom borders (2D and 3D), shadow text, independent text and checkbox alignment, image checkboxes, and comprehensive data binding options.

Key Capabilities

  • Three States: Checked, Unchecked, and Indeterminate with tristate support
  • Value Association: Bind integer and string values to each state
  • Visual Customization: Gradient backgrounds, custom borders, shadow text
  • Flexible Alignment: Independent positioning of text and checkbox
  • Data Binding: Connect to SQL databases with BoolValue and IntValue properties
  • Event Handling: Respond to CheckStateChanged and CheckedChanged events
  • Behavior Control: AutoHeight, ReadOnlyMode, and focus rectangle options

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet packages
  • Adding CheckBoxAdv via designer
  • Adding CheckBoxAdv programmatically
  • Required namespaces (Syncfusion.Windows.Forms.Tools)
  • Basic initialization and setup
  • Setting initial checkbox state

States and Configuration

📄 Read: references/states-and-values.md

  • CheckState property (Checked, Unchecked, Indeterminate)
  • Checked property for boolean state
  • Tristate property for three-state mode
  • Associating integer values with states (CheckedInt, UncheckedInt, IndeterminateInt)
  • Associating string values with states (CheckedString, UncheckedString, IndeterminateString)
  • Using BoolValue, IntValue, and StringValue properties
  • When to use each value type

Text and Alignment

📄 Read: references/text-and-alignment.md

  • Text shadow effects (TextShadow, ShadowColor, ShadowOffset)
  • Text wrapping with WrapText property
  • Text alignment options (TextContentAlignment)
  • CheckBox alignment options (CheckAlign)
  • Positioning options (TopLeft, MiddleCenter, BottomRight, etc.)
  • Combining text and checkbox alignment

Appearance and Behavior

📄 Read: references/appearance-and-behavior.md

  • Focus rectangle visibility (DrawFocusRectangle)
  • Automatic height calculation (AutoHeight)
  • Read-only mode (ReadOnlyMode)
  • Gradient backgrounds (BackgroundStyle, GradientStart, GradientEnd)
  • Border styles (Border3DStyle, BorderStyle, BorderSingle)
  • Border colors (BorderColor, HotBorderColor)
  • Mouse hover effects

Events and Interactions

📄 Read: references/events.md

  • CheckStateChanged event
  • CheckedChanged event
  • Event handler patterns
  • Responding to state changes
  • Event timing and order
  • Best practices for event handling

Data Binding

📄 Read: references/data-binding.md

  • Binding to SQL databases
  • BoolValue property for bit/boolean fields
  • IntValue property for integer fields
  • SqlDataAdapter and DataTable usage
  • Connection string configuration
  • Common data binding patterns
  • Troubleshooting binding issues

Quick Start Example

using Syncfusion.Windows.Forms.Tools;

// Create CheckBoxAdv instance
CheckBoxAdv checkBoxAdv1 = new CheckBoxAdv();
checkBoxAdv1.Text = "Enable Feature";
checkBoxAdv1.Size = new Size(150, 25);
checkBoxAdv1.Location = new Point(20, 20);

// Set initial state
checkBoxAdv1.Checked = true;

// Add to form
this.Controls.Add(checkBoxAdv1);

// Handle state changes
checkBoxAdv1.CheckedChanged += (sender, e) => {
    MessageBox.Show($"Checkbox is now: {checkBoxAdv1.Checked}");
};

Common Patterns

Pattern 1: Three-State Checkbox

When the user needs a checkbox with checked, unchecked, and indeterminate states:

CheckBoxAdv checkBoxAdv1 = new CheckBoxAdv();
checkBoxAdv1.Text = "Select All";
checkBoxAdv1.Tristate = true;
checkBoxAdv1.CheckState = CheckState.Indeterminate;

checkBoxAdv1.CheckStateChanged += (sender, e) => {
    switch(checkBoxAdv1.CheckState) {
        case CheckState.Checked:
            // Select all items
            break;
        case CheckState.Unchecked:
            // Deselect all items
            break;
        case CheckState.Indeterminate:
            // Partial selection
            break;
    }
};

Pattern 2: Checkbox with Custom Styling

When the user needs a visually enhanced checkbox with gradient background and borders:

CheckBoxAdv checkBoxAdv1 = new CheckBoxAdv();
checkBoxAdv1.Text = "Styled Checkbox";

// Gradient background
checkBoxAdv1.BackgroundStyle = CheckBoxAdvBackStyle.HorizontalGradient;
checkBoxAdv1.GradientStart = Color.LightBlue;
checkBoxAdv1.GradientEnd = Color.DarkBlue;

// Custom border
checkBoxAdv1.BorderStyle = BorderStyle.FixedSingle;
checkBoxAdv1.BorderColor = Color.Navy;
checkBoxAdv1.HotBorderColor = Color.Red; // On mouse hover

// Shadow text
checkBoxAdv1.TextShadow = true;
checkBoxAdv1.ShadowColor = Color.Gray;
checkBoxAdv1.ShadowOffset = new Point(2, 2);

Pattern 3: Data-Bound Checkbox

When the user needs to bind a checkbox to a database field:

// For boolean/bit fields
using (SqlConnection conn = new SqlConnection(connectionString)) {
    conn.Open();
    SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM Settings", conn);
    DataTable dataTable = new DataTable();
    adapter.Fill(dataTable);
    
    checkBoxAdv1.DataBindings.Add("BoolValue", dataTable, "IsEnabled");
}

// For integer fields (values: -1, 0, 1)
checkBoxAdv1.DataBindings.Add("IntValue", dataTable, "StatusCode");

Pattern 4: Read-Only Checkbox Display

When the user needs to display checkbox state without allowing user changes:

CheckBoxAdv checkBoxAdv1 = new CheckBoxAdv();
checkBoxAdv1.Text = "Read-Only Status";
checkBoxAdv1.Checked = true;
checkBoxAdv1.ReadOnlyMode = true;
checkBoxAdv1.DrawFocusRectangle = false;

Key Properties

State Properties

  • Checked (bool): Gets or sets the checked state (true/false)
  • CheckState (CheckState): Gets or sets the state (Checked, Unchecked, Indeterminate)
  • Tristate (bool): Enables three-state mode with user access to indeterminate

Value Properties

  • BoolValue (bool): Boolean representation of state (for data binding)
  • IntValue (int): Integer representation of state
  • StringValue (string): String representation of current state
  • CheckedInt/UncheckedInt/IndeterminateInt (int): Integer values for each state
  • CheckedString/UncheckedString/IndeterminateString (string): String values for each state

Appearance Properties

  • BackgroundStyle (CheckBoxAdvBackStyle): Background style (Default, HorizontalGradient, VerticalGradient)
  • GradientStart/GradientEnd (Color): Gradient colors
  • BorderStyle (BorderStyle): Border style (FixedSingle, Fixed3D, None)
  • BorderColor/HotBorderColor (Color): Border colors
  • TextShadow (bool): Enable text shadow
  • DrawFocusRectangle (bool): Show focus rectangle

Alignment Properties

  • TextContentAlignment (ContentAlignment): Text position
  • CheckAlign (ContentAlignment): Checkbox position

Behavior Properties

  • AutoHeight (bool): Automatically calculate height
  • ReadOnlyMode (bool): Prevent user interaction
  • WrapText (bool): Enable text wrapping

Common Use Cases

Use Case 1: Settings Dialog

Create checkboxes for application settings with state persistence:

  • Use BoolValue for simple on/off settings
  • Bind directly to configuration database
  • Handle CheckedChanged to save settings immediately

Use Case 2: List Item Selection

Implement "Select All" with indeterminate state:

  • Use Tristate property for three-state behavior
  • CheckState.Indeterminate for partial selections
  • Update state based on child item selection

Use Case 3: Form Validation

Create read-only checkboxes to display validation status:

  • Set ReadOnlyMode = true
  • Update Checked state programmatically
  • Use custom colors to indicate status

Use Case 4: Enhanced UI Design

Build visually rich checkboxes matching application theme:

  • Apply gradient backgrounds
  • Configure custom borders and hover effects
  • Add shadow text for depth
  • Position text and checkbox independently

Use Case 5: Data Entry Forms

Bind checkboxes to database records:

  • Use IntValue for status codes (0, 1, or -1)
  • Use BoolValue for yes/no fields
  • Associate custom integer/string values with states

FAQ

What does the syncfusion-winforms-checkbox skill do?

Guide to implement and customize the Syncfusion WinForms CheckBoxAdv control. Use this when working with advanced checkbox controls featuring three states, gradient backgrounds, custom borders, shadow text, or flexible alignment in Windows Forms applications.

How do I install syncfusion-winforms-checkbox?

Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-checkbox in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-winforms-checkbox/ (personal) or .claude/skills/syncfusion-winforms-checkbox/ (project).

Which AI agents can use syncfusion-winforms-checkbox?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-winforms-checkbox safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-winforms-checkbox?

It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 79 recorded installs.

More from syncfusion/winforms-ui-components-skills

View all →

syncfusion-winforms-datagrid

syncfusion/winforms-ui-components-skills

Implements Syncfusion WinForms SfDataGrid component for displaying and managing tabular data in Windows Forms applications. Use this when working with data grids, column management (auto-generation, stacked headers), data operations (filtering, sorting, grouping), or grid editing with validation. The skill covers data summaries, selection modes, export capabilities (Excel/PDF), conditional styling, master-detail views, and drag-and-drop functionality.

syncfusion-winforms-button

syncfusion/winforms-ui-components-skills

Guide developers to implement and customize the Syncfusion Windows Forms SfButton control for desktop applications. Use this when creating interactive buttons with text, images, styling, and theming in Windows Forms applications. Covers implementation, customization, and interaction handling.

syncfusion-winforms-common

syncfusion/winforms-ui-components-skills

Comprehensive guide for implementing Syncfusion Essential Studio Windows Forms (WinForms) controls in desktop applications. Use this skill when working with Syncfusion WinForms components or Essential Studio WinForms. Covers WinForms installation, localization, high DPI support, and .NET Core compatibility. Helps with adding controls, registering license keys, and troubleshooting WinForms component issues.

syncfusion-winforms-contextmenustrip

syncfusion/winforms-ui-components-skills

Implement ContextMenuStripEx enhanced context menus in Windows Forms applications. Use this when working with context menus, right-click functionality, or popup menus with custom items. Covers menu configuration, multi-level menus, keyboard shortcuts, and appearance customization in WinForms.

syncfusion-winforms-listview

syncfusion/winforms-ui-components-skills

Guide for implementing Syncfusion SfListView control in Windows Forms for creating list-based UIs with data binding, grouping, sorting, filtering, and selection capabilities. Use when building applications with item collections, Explorer views, contact lists, or product catalogs with sortable/filterable lists. Covers data binding, checkbox lists, grouped lists, filtered lists, and rich data display for list interfaces.

syncfusion-winforms-docking-manager

syncfusion/winforms-ui-components-skills

Guide to implement Syncfusion WinForms DockingManager control for Visual Studio-style dockable windows and layouts. Use this when creating docked, floating, or tabbed windows with advanced layout management. Covers dock states, auto-hide functionality, caption customization, and serialization in WinForms applications.

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs