Gagel
Newcomer
In VB 6.0 I used the KeyPress-Event to change user inputs.
E.g. when a textbox has the text "31.0" and the user hits the "2"-key, I changed the KeyAscii paramter to 0, because there is no 31th day in February.
E.g. when I didnt want that the user is able to type in german letter (like ä, ö , ü). I just changed the KeyAscii to 0.
In VB.net I am not able to change the e.Keycode paramter and in the KeyPress events the changes are already made. I think that I have to use the KeyDown method, but how can I change the Keycode?
E.g. when a textbox has the text "31.0" and the user hits the "2"-key, I changed the KeyAscii paramter to 0, because there is no 31th day in February.
E.g. when I didnt want that the user is able to type in german letter (like ä, ö , ü). I just changed the KeyAscii to 0.
In VB.net I am not able to change the e.Keycode paramter and in the KeyPress events the changes are already made. I think that I have to use the KeyDown method, but how can I change the Keycode?
Last edited: