StrataFrame Forum

Mask Control

http://forum.strataframe.net/Topic23001.aspx

By Ger Cannoll - 5/3/2009

I've searched around here and on the Net to locate a control which will allow numbers to be entered, but there does not seem to be an obvious control. The MasktextBox is suggested but at the same time there seems to be lots of limitations.

I want to enter just a number e.g.

145.67   or    20   or    .5    or    6003.45   or    -70.54    etc

Is there a control that will do this. In VFP. this is a nobrainer....as long as the Control Source is a numeric field,nothing else has to be done.

By Trent L. Taylor - 5/4/2009

There are several controls that you can use.  You can use the masked textbox or a Numeric Up/Down control.  The masking in .NET is weak to some degree and 3rd party controls can help in this one area quite a bit.  If in the budget Infragistics has some great Currency and Numeric masming controls that work very well.  As you know, the SF Masked TextBox inherits from the .NET control.  So though you can do exactly what you are trying to do, if your needs are not met then some options are looking at a 3rd party control for more complex maskings.