Link to home
Start Free TrialLog in
Avatar of ISC
ISC

asked on

Mask Text Control

Hi,

I want a mask input control with the following behaviour...

The user can only enter a floating point number with either two, one, zero signifiacnt digits and up to six digits after the decimal point (this number represents a rate) the user should also be able to enter a minus sign (if required) to represent a negative rate....

How do I acheive this...? Is a "MaskedTextbox" the best way to achieve this..?

Thanks Ian
Avatar of spprivate
spprivate
Flag of United States of America image

MaskedTextBox is for passwords or confidential data.
For you you need a regular expression
I am sorry,my comment about masked text box was wrong.That is a formatter but for you we need to look into regex
ASKER CERTIFIED SOLUTION
Avatar of spprivate
spprivate
Flag of United States of America 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
Avatar of ISC
ISC

ASKER

Thanks for this I learnt something new...