Groups | Blog | Home
all groups > vb.net > may 2004 >

vb.net : How textbox mask control?



Ken Tucker [MVP]
5/9/2004 10:29:30 AM
Hi,

In addition to Herfried's comments you can use a numericupdown
control with the decimalplaces set to 2.

Ken
-----------------
[quoted text, click to view]

Brian Henry
5/9/2004 3:35:17 PM
how about you provide an example of how a regular expression is going to
keep them entering characters in the correct format?


[quoted text, click to view]

hirf-spam-me-here NO[at]SPAM gmx.at
5/9/2004 3:56:58 PM
* "Agnes" <agnes@dynamictech.com.hk> scripsit:
[quoted text, click to view]

<URL:http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp>
<URL:http://www.codeproject.com/vb/net/maskedbox_control.asp>
<URL:http://www.codeproject.com/vb/net/validtext3.asp>
<URL:http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp>
<URL:http://www.codeproject.com/useritems/ValidText.asp>
....

--
Herfried K. Wagner [MVP]
les NO[at]SPAM knowdotnet-dot-com.no-spam.invalid
5/9/2004 6:59:20 PM
Bismark Prods
5/9/2004 8:15:27 PM
A simple Regular Expression

Bismark

"Agnes" <agnes@dynamictech.com.hk> a écrit dans le message de
news:%23N4DzzcNEHA.2976@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Agnes
5/9/2004 9:53:09 PM
for the textbox, how can i make the user only input the numeric value and
with decimal 2 ?
e.g 123.56 but not 123.567

Thanks
From Agnes

Bismark Prods
5/10/2004 1:07:47 PM
By validating the textbox every time a character is set or unset. It is the
proper of REGular EXPression isn't it ? Allowing only certain characters and
not matching the others. If not match he or she could be throwing a new
exception ...

It is my vision of this problem.

Bismark

P.S.: this could be like this ... \d'*\.\d{3}


"Brian Henry" <brianiupmsdn@newsgroups.nospam> a écrit dans le message de
news:eUeYEzfNEHA.620@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button