KeyDown Event

T

Terry Holland

I have a textbox that I only want to allow numbers to be entered into.
Could someone show me some code to achieve this pls

tia

Terry Holland
 
G

Guest

In the KeyPress Event, you can check each character entered and if it isn't
numberic, you can return e.Handled
 

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