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

Digits only in MaskTextBox

Hi,
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.


1 Reply

FS Fathima Shalini P Syncfusion Team 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:

http://websamples.syncfusion.com/samples/Tools.Windows/46651/main.htm

Please let me know if any concerns.

Regards,
Fathima


Loader.
Live Chat Icon For mobile
Up arrow icon