event keyup key code
" I would like to use the click even if an icon to act as an enter key event on an input box. this code will move focus to the input box, the input has a value in it also, but the keyup event is not fired. So the keycode for both "1" and "!" is the value returned by Asc("1"). Again, to test for the "!" character you need to use the shift argument. The KeyDown and KeyUp events can recognize most of the keydown/keyup event.keyCode Opera MSIE Firefox Safari Chrome KeyThe numeric keypad may produce different keycodes depending on the NumLock state The keyup event is sent to an element when the user releases a key on the keyboard.This code corresponds to a key on the keyboard, including codes for special keys such as arrows.
For catching actual text entry, .keypress() may be a better choice. In the table below you can enter key strokes and see what codes are generated by the three key events: keydown, keypress, and keyup. Below this are a couple examples restricting data entry using the keypress event based on observation made by entering keystrokes into the table. KeyUp event of textBox. if keycode alpha or numeric then OK end if.thanks that got me to my solution. in the key up I used Code: If Char.IsLetterOrDigit(Convert.ToChar(e. KeyCode)) Then Do something end if. The event.