Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block Alphanumeric Keys...

Status
Not open for further replies.

ToshTrent

Technical User
Jul 27, 2003
209
Hi,

I've not long installed VB.NET and have discovered several changes which I have used allot.

There is now no key press event which seems shocking.

I need to prevent all entries into a textbox except for numbers, I am aware of the KeyAscii > ## And KeyAscii < ### option in VB, but could someone please inform me how to implement this in .NET?

Thank you in advance.

Tosh


[red]
Thankyou[/red]
Matt
 
There is a KeyPress event. There are probably about 20 posts in this particular forum to do what you wish. Do a quick search, and you should have a bunch of answers.
 
Oh no, they stole the keypress event. ;-)

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top