/syncfusion-winforms:syncfusion-winforms-integer-textboxfrom Syncfusion WinForms Controls
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.
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.
Use this skill when you need to:
The IntegerTextBox is a specialized Windows Forms control derived from the standard TextBox. It:
Key Characteristics:
Choose the reference that matches your current task:
📄 Read: references/getting-started.md
📄 Read: references/appearance.md
📄 Read: references/data-formatting.md
📄 Read: references/events.md
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;
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;
Format large numbers with custom separators (e.g., "1,234,567"):
integerTextBox1.NumberGroupSeparator = ",";
integerTextBox1.NumberGroupSizes = new int[] { 3 };
integerTextBox1.IntegerValue = 1234567;
Respond when the user enters a new value:
integerTextBox1.BindableValueChanged +=
(sender, e) => MessageBox.Show($"New value: {integerTextBox1.IntegerValue}");
Catch and respond to validation errors:
integerTextBox1.ValidationError += (sender, e) =>
{
MessageBox.Show("Invalid input! Please enter a valid integer.");
};
| Property | Purpose | Example |
|---|---|---|
| MaxValue | Upper bound for integer values | integerTextBox1.MaxValue = 100; |
| MinValue | Lower bound for integer values | integerTextBox1.MinValue = 0; |
| IntegerValue | Get/set the current integer value | int val = integerTextBox1.IntegerValue; |
| BindableValue | Wrapper for null-safe value access | integerTextBox1.BindableValue = null; |
| AllowLeadingZeros | Allow zeros before number (e.g., "0123") | integerTextBox1.AllowLeadingZeros = true; |
| NumberGroupSeparator | Character to separate digit groups | integerTextBox1.NumberGroupSeparator = ","; |
| NumberGroupSizes | Size of each digit group | integerTextBox1.NumberGroupSizes = new int[] { 3 }; |
| PositiveColor | Color for positive values | integerTextBox1.PositiveColor = Color.Green; |
| NegativeColor | Color for negative values | integerTextBox1.NegativeColor = Color.Red; |
| ZeroColor | Color when value is zero | integerTextBox1.ZeroColor = Color.Gray; |
| BackColor | Control background color | integerTextBox1.BackColor = Color.White; |
| ReadOnlyBackColor | Background when read-only | integerTextBox1.ReadOnlyBackColor = Color.LightGray; |
| ReadOnly | Prevent user editing | integerTextBox1.ReadOnly = true; |
| DeleteSelectionOnNegative | Delete selected text when minus pressed | integerTextBox1.DeleteSelectionOnNegative = true; |
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}");
};
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.