Does anybody know which event fires in VB when you press a key at any given time, without it having to be in a text box or combo box?
Printable View
Does anybody know which event fires in VB when you press a key at any given time, without it having to be in a text box or combo box?
Hi,
Assuming that a form's property: KeyPreview is true then the form-keypress event will fire and then control' keypress events.
Have a good one!
BK
Otherwise it goes to the active control's KeyPress or KeyDown event (if they have one).