MCPInstall

syncfusion-winforms-currency-textbox

Implement currency input controls in Windows Forms applications using Syncfusion CurrencyTextBox. Use this skill when developers need to create currency entry fields with validation, formatting, decimal handling, positive/negative color coding, and clipboard support. Essential for financial forms, payment inputs, budget applications, and any scenario requiring validated currency input.

Installs
76
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-currency-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-currency-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 CurrencyTextBox

Syncfusion CurrencyTextBox is a specialized text input control derived from System.Windows.Forms.TextBox that provides currency-specific validation, formatting, and behavior. It handles keyboard input validation, culture-aware decimal formatting, and value constraints automatically.

When to Use This Skill

  • Creating currency input fields with automatic validation
  • Building financial data entry forms (invoices, payments, budgets)
  • Implementing currency display with positive/negative color coding
  • Working with decimal precision and grouping separators
  • Handling clipboard operations with currency data
  • Adding keyboard shortcuts for multiplying values (Mega, Kilo, etc.)
  • Enforcing minimum and maximum currency values
  • Displaying overflow indicators for large numbers

Component Overview

The CurrencyTextBox control intercepts user keyboard input and prevents entry of invalid currency characters. It automatically formats the display based on decimal digits, group separators, and the currency symbol. Unlike the standard TextBox, it validates against min/max bounds and supports currency-specific events.

Key Capabilities:

  • Automatic keyboard input validation
  • Culture-aware decimal formatting
  • Max/Min value constraints with enforcement
  • Positive, negative, and zero value color coding
  • Clipboard support with optional format stripping
  • Overflow indicators with tooltips
  • Keyboard shortcuts for multiplying values
  • ValidationError event for invalid input handling

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly dependencies
  • Creating a project and adding the control
  • Designer and code-based control creation
  • Setting up MaxValue/MinValue constraints
  • Configuring currency symbols
  • Basic control properties

Text Field Customization

📄 Read: references/text-field-customization.md

  • Text display and alignment (Left, Center, Right)
  • Multiline support with word wrapping
  • Password character masking
  • Banner text for empty state
  • Number and decimal digit formatting
  • Handling negative values and signs
  • Null string configuration

Value Formatting

📄 Read: references/value-formatting.md

  • DecimalValue programmatic access
  • Currency symbol customization
  • Number formatting (total digits before decimal)
  • Decimal digit precision
  • Group separator configuration
  • Removing trailing decimal zeros
  • Currency positive and negative patterns

Event Handling

📄 Read: references/event-handling.md

  • KeyDown event for keyboard shortcuts
  • Adding multiplier keys (G, M, K for Giga/Mega/Kilo)
  • ValidationError event for invalid input
  • Error message handling with StartPosition
  • Using ErrorProvider for visual feedback
  • Custom validation scenarios

Appearance Customization

📄 Read: references/appearance-customization.md

  • Border styles (FixedSingle, Fixed3D, None)
  • 3D border effects (Raised, Sunken, Flat, etc.)
  • Border color and side configuration
  • Color coding by value (Positive, Negative, Zero)
  • ReadOnly background color
  • Visual style application

Advanced Features

📄 Read: references/advanced-features.md

  • Clipboard support with formatting options
  • Overflow indicator display
  • Overflow indicator tooltips
  • Multiple clipboard modes
  • Data preservation strategies

Validation and Constraints

📄 Read: references/validation-and-constraints.md

  • Setting min/max boundaries
  • Enforcing constraints during validation
  • Negative input behavior with selected text
  • AllowNull configuration
  • NullString custom display values
  • Value range enforcement

Quick Start Example

using System.Windows.Forms;
using Syncfusion.Windows.Forms.Tools;

public partial class Form1 : Form
{
    private CurrencyTextBox currencyTextBox1;
    
    public Form1()
    {
        InitializeComponent();
        
        // Create and configure CurrencyTextBox
        currencyTextBox1 = new CurrencyTextBox();
        currencyTextBox1.Location = new System.Drawing.Point(10, 10);
        currencyTextBox1.Size = new System.Drawing.Size(200, 25);
        
        // Set currency format
        currencyTextBox1.CurrencySymbol = "$";
        currencyTextBox1.CurrencyDecimalDigits = 2;
        currencyTextBox1.CurrencyGroupSeparator = ",";
        currencyTextBox1.CurrencyGroupSizes = new int[] { 3 };
        
        // Set value constraints
        currencyTextBox1.MaxValue = 999999.99m;
        currencyTextBox1.MinValue = 0m;
        currencyTextBox1.DecimalValue = 100.00m;
        
        // Set colors for value states
        currencyTextBox1.PositiveColor = System.Drawing.Color.Black;
        currencyTextBox1.NegativeColor = System.Drawing.Color.Red;
        currencyTextBox1.ZeroColor = System.Drawing.Color.Gray;
        
        this.Controls.Add(currencyTextBox1);
    }
}

Common Patterns

Currency Entry Form

// For collecting currency amounts (payments, invoices, etc.)
currencyTextBox.MaxValue = decimal.MaxValue;
currencyTextBox.MinValue = 0m;
currencyTextBox.CurrencySymbol = "$";
currencyTextBox.CurrencyDecimalDigits = 2;
currencyTextBox.AllowNull = false;

Profit/Loss Display

// Color-code by sign (green for profit, red for loss)
currencyTextBox.PositiveColor = System.Drawing.Color.Green;
currencyTextBox.NegativeColor = System.Drawing.Color.Red;
currencyTextBox.MaxValue = decimal.MaxValue;
currencyTextBox.MinValue = decimal.MinValue;

Optional Amount with Placeholder

// Allow null values with custom placeholder text
currencyTextBox.AllowNull = true;
currencyTextBox.NullString = "(Not Specified)";
currencyTextBox.Text = "";

Keyboard Shortcuts for Large Numbers

// Handle KeyDown event to add multiplier shortcuts
private void currencyTextBox1_KeyDown(object sender, KeyEventArgs e)
{
    decimal value = currencyTextBox1.DecimalValue;
    switch(e.KeyCode)
    {
        case Keys.G: // Giga (billion)
            currencyTextBox1.DecimalValue = value * 1000000000m;
            break;
        case Keys.M: // Mega (million)
            currencyTextBox1.DecimalValue = value * 1000000m;
            break;
        case Keys.K: // Kilo (thousand)
            currencyTextBox1.DecimalValue = value * 1000m;
            break;
    }
}

Key Properties Reference

PropertyTypePurposeCommon Values
DecimalValuedecimalGet/set numeric value programmaticallyAny valid decimal
CurrencySymbolstringCurrency symbol display"$", "€", "£", "¥"
CurrencyDecimalDigitsintDecimal places displayed2, 3, 4
CurrencyGroupSeparatorstringThousands separator",", ".", " "
MaxValuedecimalMaximum allowed value999999.99, 100000, etc.
MinValuedecimalMinimum allowed value0, -999999.99, etc.
PositiveColorColorColor for positive valuesColor.Black, Color.Green
NegativeColorColorColor for negative valuesColor.Red, Color.Maroon
ZeroColorColorColor for zero valueColor.Gray, Color.DarkGray
TextAlignHorizontalAlignmentText positionLeft, Center, Right
BorderStyleBorderStyleBorder appearanceFixedSingle, Fixed3D, None
AllowNullboolAllow empty/null valuestrue, false
ShowOverflowIndicatorboolShow indicator when value exceeds boundstrue, false

Use Cases by Scenario

Financial Application

  • Use positive/negative color coding
  • Set MaxValue to prevent data type overflow
  • Handle ValidationError for audit logging
  • Support clipboard for paste operations

Budget Entry Form

  • Set reasonable MaxValue (e.g., 999999.99)
  • Use TextAlign.Right for numeric convention
  • Display banner text for required fields
  • Enforce MinValue of 0 if amounts must be positive

Multi-Currency Display

  • Change CurrencySymbol based on user locale
  • Keep CurrencyDecimalDigits consistent (usually 2)
  • Adjust CurrencyGroupSeparator per region
  • Display DecimalValue consistently in database

Large Number Handling

  • Enable keyboard multiplier shortcuts (G, M, K)
  • Use ShowOverflowIndicator for values exceeding visible space
  • Remove decimal zeros with RemoveDecimalZeros property
  • Increase number digits with CurrencyNumberDigits

Next Steps

  • Choose the reference file matching your task
  • Implement the control following the code examples
  • Test with both valid and edge-case values
  • Handle ValidationError event for invalid input
  • Use DecimalValue for business logic, Text for display

FAQ

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

Implement currency input controls in Windows Forms applications using Syncfusion CurrencyTextBox. Use this skill when developers need to create currency entry fields with validation, formatting, decimal handling, positive/negative color coding, and clipboard support. Essential for financial forms, payment inputs, budget applications, and any scenario requiring validated currency input.

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

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

Which AI agents can use syncfusion-winforms-currency-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-currency-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-currency-textbox?

It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 76 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