MCPInstall

syncfusion-winforms-integer-textbox

Guide for implementing Syncfusion Windows Forms Integer TextBox control. Use when creating integer input fields with numeric validation, number formatting, or value constraints in data entry scenarios. Covers integer validation, number formatting, min/max constraints, value formatting, and numeric input fields in WinForms applications.

Installs
77
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-integer-textbox
  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-integer-textbox 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 Syncfusion Windows Forms Integer TextBox

When to Use This Skill

Use this skill when you need to:

  • Create numeric input fields that accept only integer values
  • Set up value constraints (minimum and maximum bounds)
  • Format and display numbers with custom separators
  • Handle negative values and validation
  • Respond to value changes and validation errors in Windows Forms applications
  • Apply visual styling to numeric inputs (colors, borders)

Component Overview

The IntegerTextBox is a specialized Windows Forms control derived from the standard TextBox. It:

  • Accepts and displays only integer data types
  • Enforces min/max value constraints automatically
  • Supports custom number formatting with group separators
  • Provides events for value changes and validation errors
  • Allows visual customization through colors and styling
  • Handles null values and read-only states
  • Supports leading zeros and negative value handling

Key Characteristics:

  • Restricts input to integer values only
  • Validates input in real-time
  • Provides wrapper properties for null handling
  • Offers formatting options without themes or localization
  • Lightweight and responsive to user interactions

Documentation & Navigation Guide

Choose the reference that matches your current task:

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Adding control through designer
  • Adding control manually in C# code
  • Setting minimum and maximum value constraints
  • Initial configuration patterns

Visual Appearance

📄 Read: references/appearance.md

  • Setting background colors
  • Configuring text colors by value type (positive/negative/zero)
  • Border styling
  • Read-only state appearance
  • Color reset methods

Data Handling & Formatting

📄 Read: references/data-formatting.md

  • Number formatting options
  • Group separators and group sizes
  • Handling negative values and key inputs
  • Leading zeros support
  • Null value management
  • Read-only with separate colors

Events & Interactions

📄 Read: references/events.md

  • BindableValueChanged event usage
  • IntegerValueChanged event handling
  • ValidationError event patterns
  • FormattedTextChanged and ClipTextChanged
  • Event handler implementation examples

Quick Start Example

Here's a minimal working example:

using Syncfusion.Windows.Forms.Tools;

// Add assembly reference: Syncfusion.Shared.Base
// Include namespace: Syncfusion.Windows.Forms.Tools

// Create and add control
IntegerTextBox integerTextBox1 = new IntegerTextBox();
this.Controls.Add(integerTextBox1);

// Set constraints
integerTextBox1.MaxValue = 999999;
integerTextBox1.MinValue = -999999;
integerTextBox1.IntegerValue = 0;

Common Patterns

Pattern 1: Value-Based Color Coding

Display positive values in green, negative in red, zero in gray:

integerTextBox1.PositiveColor = System.Drawing.Color.Green;
integerTextBox1.NegativeColor = System.Drawing.Color.Red;
integerTextBox1.ZeroColor = System.Drawing.Color.Gray;

Pattern 2: Number Formatting with Separators

Format large numbers with custom separators (e.g., "1,234,567"):

integerTextBox1.NumberGroupSeparator = ",";
integerTextBox1.NumberGroupSizes = new int[] { 3 };
integerTextBox1.IntegerValue = 1234567;

Pattern 3: Handling Value Changes

Respond when the user enters a new value:

integerTextBox1.BindableValueChanged += 
    (sender, e) => MessageBox.Show($"New value: {integerTextBox1.IntegerValue}");

Pattern 4: Validation with Error Handling

Catch and respond to validation errors:

integerTextBox1.ValidationError += (sender, e) =>
{
    MessageBox.Show("Invalid input! Please enter a valid integer.");
};

Key Properties

PropertyPurposeExample
MaxValueUpper bound for integer valuesintegerTextBox1.MaxValue = 100;
MinValueLower bound for integer valuesintegerTextBox1.MinValue = 0;
IntegerValueGet/set the current integer valueint val = integerTextBox1.IntegerValue;
BindableValueWrapper for null-safe value accessintegerTextBox1.BindableValue = null;
AllowLeadingZerosAllow zeros before number (e.g., "0123")integerTextBox1.AllowLeadingZeros = true;
NumberGroupSeparatorCharacter to separate digit groupsintegerTextBox1.NumberGroupSeparator = ",";
NumberGroupSizesSize of each digit groupintegerTextBox1.NumberGroupSizes = new int[] { 3 };
PositiveColorColor for positive valuesintegerTextBox1.PositiveColor = Color.Green;
NegativeColorColor for negative valuesintegerTextBox1.NegativeColor = Color.Red;
ZeroColorColor when value is zerointegerTextBox1.ZeroColor = Color.Gray;
BackColorControl background colorintegerTextBox1.BackColor = Color.White;
ReadOnlyBackColorBackground when read-onlyintegerTextBox1.ReadOnlyBackColor = Color.LightGray;
ReadOnlyPrevent user editingintegerTextBox1.ReadOnly = true;
DeleteSelectionOnNegativeDelete selected text when minus pressedintegerTextBox1.DeleteSelectionOnNegative = true;

Common Use Cases

Use Case 1: Financial Input with Constraints Create a textbox for dollar amounts (0 to 999,999):

integerTextBox1.MinValue = 0;
integerTextBox1.MaxValue = 999999;
integerTextBox1.NumberGroupSeparator = ",";
integerTextBox1.NumberGroupSizes = new int[] { 3 };

Use Case 2: Temperature Input (Negative & Positive) Allow temperatures from -50 to 50 degrees:

integerTextBox1.MinValue = -50;
integerTextBox1.MaxValue = 50;
integerTextBox1.NegativeColor = Color.Blue;
integerTextBox1.PositiveColor = Color.Red;

Use Case 3: Read-Only Display Show a value that users cannot modify:

integerTextBox1.IntegerValue = 42;
integerTextBox1.ReadOnly = true;
integerTextBox1.ReadOnlyBackColor = Color.LightGray;

Use Case 4: Null-Able Integer with Validation Allow null values with error handling:

integerTextBox1.BindableValueChanged += (sender, e) =>
{
    if (integerTextBox1.BindableValue == null)
        MessageBox.Show("Value cleared (null)");
    else
        MessageBox.Show($"Value: {integerTextBox1.IntegerValue}");
};

Next Steps

  • Start with Getting Started to install and create the control
  • Customize appearance using Visual Appearance
  • Handle data with Data Formatting
  • Respond to user interactions with Events

FAQ

What does the syncfusion-winforms-integer-textbox skill do?

Guide for implementing Syncfusion Windows Forms Integer TextBox control. Use when creating integer input fields with numeric validation, number formatting, or value constraints in data entry scenarios. Covers integer validation, number formatting, min/max constraints, value formatting, and numeric input fields in WinForms applications.

How do I install syncfusion-winforms-integer-textbox?

Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-integer-textbox 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-integer-textbox/ (personal) or .claude/skills/syncfusion-winforms-integer-textbox/ (project).

Which AI agents can use syncfusion-winforms-integer-textbox?

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-integer-textbox 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-integer-textbox?

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

More from syncfusion/winforms-ui-components-skills

View all →

syncfusion-winforms-datagrid

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-button

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-common

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-contextmenustrip

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-docking-manager

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-licensing

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

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