Anthony Matovu
asked on
only numeric, backspace, delete key in a textbox vb6
I want to allow only numeric, backspace and the delete keys in my text box. I have not got the code for the backspace and delete key
for numeric i am using this code
private sub amount_keydown(keycode as integer, shift as integer)
if keycode < 48 or keycode > 57 then
keycode = 0
end if
end sub
for numeric i am using this code
private sub amount_keydown(keycode as integer, shift as integer)
if keycode < 48 or keycode > 57 then
keycode = 0
end if
end sub
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try using a Masked Edit control, might make things simpler?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.