MaskedEdit Control

G

Guest

I want to restrict users to enter only numbers in a textbox control. I have
written a code in keypress to prevent user to enter other than numeric values.

I have also read many places that I can use MaskedEdit Control. My questions
is why can't I see this control in my Toolbox just like I can see other
controls like textbox, radio button etc.

Thanks.
 
K

Ken Tucker [MVP]

Hi,

VB.NET doesnt come with one. Here are a few free ones

http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp

http://www.codeproject.com/useritems/MaskedTextBox.asp

Ken
-----------------
I want to restrict users to enter only numbers in a textbox control. I have
written a code in keypress to prevent user to enter other than numeric
values.

I have also read many places that I can use MaskedEdit Control. My questions
is why can't I see this control in my Toolbox just like I can see other
controls like textbox, radio button etc.

Thanks.
 
H

Herfried K. Wagner [MVP]

patang said:
I want to restrict users to enter only numbers in a textbox control. I have
written a code in keypress to prevent user to enter other than numeric
values.

<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>
....

..NET 2.0 will contain a masked edit control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top