KeyDown Event

  • Thread starter Thread starter Terry Holland
  • Start date Start date
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
 
In the KeyPress Event, you can check each character entered and if it isn't
numberic, you can return e.Handled
 
Back
Top