Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does numeric TextBox exist?
Message
De
04/03/2005 14:05:36
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00992436
Message ID:
00992846
Vues:
25
Microsoft has documentation for it at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/masked/html/vbobjMaskEdit.asp

>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
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform