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.
Unfortunately, activation email could not send to your email. Please try again.

Digits only in MaskTextBox

Thread ID:





73987 May 28,2008 02:53 AM May 28,2008 05:59 AM Windows Forms 1
Tags: Tools
Barry Chen
Asked On May 28, 2008 02:53 AM

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 05:59 AM

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.

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.