Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does numeric TextBox exist?
Message
 
To
03/03/2005 13:47:03
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00992436
Message ID:
00992702
Views:
19
I don't recall any masked edit text box in VB 6 - I used a few commercial ActiveX controls for this type of functionality. Did I miss something>

>There used to be a masked edit text box in VB 6.0, but it seems to have disappeared from .NET. As I remember it, it just had a string property that wasn't quite a regular expression, more like a template, and for each keystroke, it evaluated if it conformed to the template, ignoring wrong characters. If your template was "(###) ###-####" for a phone number and the user typed "12345ABC", they would see "(123) 45|-", where "|" is the cursor and the text was ignored. I would prefer a regular expression to a template. I could code my own, of course, but it is such a common need, I keep rubbing my colored infinity icon for VS.NET and making the same wish.
>
>I am hoping that it will be included in the next version. Does anyone know if it will be? Are there any Whidbey groupies who know? (Or should I have said, "Whidbey Insiders"?)
>
>>Before I spend too much time on creating my own custom NumericTextBox I wanted to check if something like that exists in the framework, or if the functionality I want can be obtained by TextBox properties.
>>I would like a NumericTextBox to obay the following rules:
>>- Only numeric values can be entered (0-9, ',' , '.' , '-' and '+')
>>- Property for min and max value
>>- Property for using thousand separator or not
>>- Property if decimal is allowed or not
>>
>>In VFP I could easily do this using the inputmask property, and I was wondering if there was something as easy as that in C#.
>>
>>Thanks,
>>Einar
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform