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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Digits only in MaskTextBox

Thread ID:





73987 May 28,2008 06:53 AM UTC May 28,2008 09:59 AM UTC WinForms 1
Tags: Tools
Barry Chen
Asked On May 28, 2008 06:53 AM UTC

I need a textbox that allows to enter only digits, how can i do it?
I thoght to use the maskedTextBox control and give a mask of '#', but i dont know how many '#' to insert, i dont know how manydigits the user can enter.

Fathima Shalini P [Syncfusion]
Replied On May 28, 2008 09:59 AM UTC

Hi Barry,

Thank you for your interest in Syncfusion Products.

We have two specific TextBox controls to display numeric values alone. They are IntegerTextBox and DoubleTextBox. The IntegerTextBox is derived from a Windows Forms framework text box control and can display integer data type values alone.The DoubleTextBox is a text box-derived control that can display double data type values. Please refer the below sample that llustrates this:


Please let me know if any concerns.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon