
syncfusion-winforms-numeric-textbox
Implement Syncfusion SfNumericTextBox for numeric input with formatting, validation, and customization in Windows Forms. Use when creating numeric input controls with currency formatting, percent values, number validation, or decimal formatting. Covers numeric formatting options, value range validation, and formatted numeric data entry with validation capabilities.
- Installs
- 78
- 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-numeric-textbox- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-winforms-numeric-textbox automatically when relevant.
- 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 WinForms SfNumericTextBox
The Syncfusion WinForms SfNumericTextBox control is an advanced text input control that displays and accepts numeric values in multiple formats (numeric, currency, percent) with comprehensive validation, customization, and cultural support. It provides formatting options, value constraints, appearance customization, and event-driven capabilities for professional numeric data entry scenarios.
When to Use This Skill
Use this skill ALWAYS and immediately when you need to:
- Numeric Input: Accept and display numeric values with precision
- Format Modes: Support numeric, currency, or percent formats
- Value Validation: Enforce minimum and maximum value constraints
- Formatting: Apply custom formatting with prefix/suffix, hide trailing zeros
- Watermark: Display placeholder text when control is empty
- Cultural Formatting: Support multiple cultures and number formats
- Appearance Customization: Customize colors based on value (positive/negative/zero)
- Event Handling: Respond to value changes with ValueChanged event
- Data Entry Forms: Build professional forms with validated numeric fields
Component Overview
The SfNumericTextBox control is part of Syncfusion Essential Studio for Windows Forms and provides:
- Multiple Format Modes: Numeric, Currency, and Percent modes
- Value Range Support: Define and validate minimum and maximum values
- Precision Preservation: Maintains full precision while displaying formatted text
- Null Value Support: AllowNull property for nullable numeric fields
- Watermark Text: Display guidance text when value is null
- Custom Units: Prefix and suffix support for units and labels
- Trailing Zeros: Option to hide trailing zeros for cleaner display
- Validation Modes: KeyPress or LostFocus validation timing
- Color Customization: Different colors for positive, negative, and zero values
- Border Styling: Customizable borders with focus and hover states
- Event System: ValueChanged event with OldValue and NewValue tracking
- Cultural Support: Culture-aware formatting via NumberFormatInfo
- Designer Support: Full design-time support via toolbox
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
When to read: First-time setup, installation, basic implementation
Topics covered:
- Assembly deployment and NuGet package installation
- Adding SfNumericTextBox via designer or code
- Namespace imports
- Setting values (Value property)
- Basic format modes
- Watermark text basics
- Min/Max value setup
Format Modes
📄 Read: references/format-modes.md
When to read: Formatting numbers in different modes, cultural support
Topics covered:
- FormatMode property (Numeric, Currency, Percent)
- Numeric format mode with decimal control
- Currency formatting with symbols
- Percent mode for percentage values
- Culture-specific formatting
- NumberFormatInfo customization
- Decimal separators and group separators
- Practical examples for each mode
Formatting Options
📄 Read: references/formatting-options.md
When to read: Hiding zeros, adding units, displaying watermarks
Topics covered:
- Hiding trailing zeros (HideTrailingZeros property)
- Prefix and suffix for custom units
- Watermark text implementation
- WatermarkText property and AllowNull
- Combining watermark with format modes
- Display examples
- Edge cases and best practices
Validation and Value Ranges
📄 Read: references/validation-and-ranges.md
When to read: Enforcing value constraints, configuring validation behavior
Topics covered:
- MinValue and MaxValue properties
- ValidationMode property (KeyPress vs LostFocus)
- ValueChangeMode property (when value updates)
- LostFocusValidation modes (Reset, MaxValue, MinValue)
- Validation flow and event timing
- Error scenarios and handling
- Practical validation examples
Appearance and Styling
📄 Read: references/appearance-and-styling.md
When to read: Customizing colors, borders, and visual appearance
Topics covered:
- PositiveForeColor for positive values
- NegativeForeColor for negative values
- ZeroForeColor for zero values
- WatermarkForeColor for placeholder text
- BorderColor, FocusBorderColor, HoverBorderColor
- DisabledBorderColor for disabled state
- BorderStyle property
- Background and font customization
- Visual state examples
Events and Advanced Patterns
📄 Read: references/events-and-advanced.md
When to read: Handling value changes, advanced scenarios
Topics covered:
- ValueChanged event and subscription
- ValueChangedEventArgs (OldValue, NewValue)
- Event timing and validation interaction
- Responding to value changes
- Advanced patterns (conditional formatting, cascading updates)
- Performance considerations
- Common event patterns
Quick Start Example
Basic Numeric TextBox in Code
using Syncfusion.WinForms.Input;
// Create SfNumericTextBox
var numericTextBox = new SfNumericTextBox();
numericTextBox.Size = new System.Drawing.Size(150, 20);
numericTextBox.Value = 123.45;
this.Controls.Add(numericTextBox);
With Formatting and Validation
// Set format mode to currency
numericTextBox.FormatMode = Syncfusion.WinForms.Input.Enums.FormatMode.Currency;
// Set value constraints
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 10000;
// Add watermark
numericTextBox.WatermarkText = "Enter amount";
numericTextBox.AllowNull = true;
// Subscribe to value changes
numericTextBox.ValueChanged += (sender, e) =>
{
MessageBox.Show($"Value changed from {e.OldValue} to {e.NewValue}");
};
Key Props and Methods
| Property | Type | Purpose |
|---|---|---|
| Value | double? | Gets or sets the numeric value |
| FormatMode | FormatMode | Sets format (Numeric, Currency, Percent) |
| MinValue | double | Minimum allowed value |
| MaxValue | double | Maximum allowed value |
| AllowNull | bool | Allow null values in control |
| WatermarkText | string | Placeholder text when empty |
| HideTrailingZeros | bool | Hide zeros after decimal point |
| Prefix | string | Text prepended to value |
| Suffix | string | Text appended to value |
| ValidationMode | ValidationMode | KeyPress or LostFocus |
| ValueChangeMode | ValueChangeMode | When value property updates |
| NumberFormatInfo | NumberFormatInfo | Culture-specific number formatting |
Common Patterns
Pattern 1: Currency Input with Range
// Currency field with $0-$10,000 range
numericTextBox.FormatMode = FormatMode.Currency;
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 10000;
numericTextBox.WatermarkText = "Enter amount (0-10000)";
Pattern 2: Percentage Display
// Display and accept percentages
numericTextBox.FormatMode = FormatMode.Percent;
numericTextBox.MinValue = 0;
numericTextBox.MaxValue = 100;
numericTextBox.HideTrailingZeros = true;
Pattern 3: Measurement with Units
// Display with custom units
numericTextBox.Suffix = " inches";
numericTextBox.Value = 25.5;
numericTextBox.HideTrailingZeros = true;
Pattern 4: Validation with Color Feedback
// Color based on value
numericTextBox.Style.PositiveForeColor = Color.Green;
numericTextBox.Style.NegativeForeColor = Color.Red;
numericTextBox.Style.ZeroForeColor = Color.Gray;
Next Steps
- Start here: Read getting-started.md for installation and basic setup
- Choose format: Explore format-modes.md for numeric, currency, or percent modes
- Add formatting: Check formatting-options.md for units, watermarks, and display options
- Enable validation: Review validation-and-ranges.md for constraints
- Customize appearance: Use appearance-and-styling.md for colors and borders
- Handle events: Implement events-and-advanced.md for dynamic behavior
FAQ
What does the syncfusion-winforms-numeric-textbox skill do?
Implement Syncfusion SfNumericTextBox for numeric input with formatting, validation, and customization in Windows Forms. Use when creating numeric input controls with currency formatting, percent values, number validation, or decimal formatting. Covers numeric formatting options, value range validation, and formatted numeric data entry with validation capabilities.
How do I install syncfusion-winforms-numeric-textbox?
Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-numeric-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-numeric-textbox/ (personal) or .claude/skills/syncfusion-winforms-numeric-textbox/ (project).
Which AI agents can use syncfusion-winforms-numeric-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-numeric-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-numeric-textbox?
It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 78 recorded installs.
More from syncfusion/winforms-ui-components-skills
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
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
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
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-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.
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.
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.
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.