Link to home
Start Free TrialLog in
Avatar of margarit
margaritFlag for Israel

asked on

Blocking textBox from some characters (latters) - C#

Hello,

I want to block my textBox from entering letters, I want the user be able to enter only numbers and plus\minus. How can I do it?

Thanks
Margarit
Avatar of carlsiy
carlsiy
Flag of Philippines image

what version of visual c# do you have or what framework are you using? in framework 2.0 and up there is a control there named NumericUpDown. try it...

cheers.
Avatar of margarit

ASKER

Microsoft Visual Studio 2005, Framework 2
ASKER CERTIFIED SOLUTION
Avatar of carlsiy
carlsiy
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, I tried it, works fine.
Thanks, nice feature