We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The WinForms Numeric TextBox control restricts the input to enter only numbers. It supports number formatting, watermark, custom units, min & max range and more. It has watermark support and allows to define and validate the value.


Key features

numeric textbox with percent currency and integer mode in purchase window

Choose mode types

Number value can be displayed in one of the following format modes. The format modes are numeric, percent and currency. The value is displayed along with the format mode symbol.

numeric textbox with defined range in form window

Define range for values

Enter the value within the range by defining it. This will restrict irrelevant values.

numeric textbox with culture support in currency converter

Localization

The numeric text box restricts only the alphabet and not the culture. The value can be displayed in the required culture using NumberFormatInfo.

numeric textbox by hiding trailing zeros in resize window

Hide unnecessary zeros

Trailing zeros that have no value will not be displayed.

numeric textbox with custom units in loan calculator

Add more information to values

More information about the value can be appended or prepended. The values can be defined with their units of measurement.

numeric textbox with watermark in personal details window

Watermark guidelines

Instructions or guidelines about the control can be given as watermark.

styling numeric textbox in stock exchange

Foreground color

Foreground color can be defined for positive, negative, and zero values.


WinForms Numeric TextBox Code Example

Easily get started with the WinForms Numeric TextBox using a few simple lines of C# code example as demonstrated below. Also explore our WinForms Numeric TextBox Example that shows you how to render and configure the WinForms Numeric TextBox.

using Syncfusion.WinForms.Input;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            SfNumericTextBox numericTextBox = new SfNumericTextBox();
            numericTextBox.Size = new System.Drawing.Size(150, 20);
            this.Controls.Add(numericTextBox);
        }
    }
}



95+ WINDOWS FORMS CONTROLS

Frequently Asked Questions

  • Enter numeric values in a specific format such as currency, percent, or custom units.
  • Hide unwanted trailing zeros.
  • Watermark text when value is null.
  • Simple configuration and API.
  • Touch friendly and responsive.
  • Extensive demos, documentation to learn quickly and get started with WinForms Numeric TextBox.

You can find our WinForms Numeric TextBox demo on

GitHub location.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion Windows Forms Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon