TextBox Control

S

Suresh

Hi All,
Iam looking for the following
1)What needs to be done so that user can enter only
numeric values in the TextBox?
2)How to set Mask for TextBox component. For example, if a
TextBox is intended for Phone Number Data entry, how do we
enable it so that user can type using a mask like (999)
999-9999?

Thanks
Suresh
 
A

Adam Durity

I suggest overloading the TextBox class and creating your own
PhoneNumberTextBox class. with in that class overload the various event
functions to control the input to the box.

-ALD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top