No form Key events w/ WebBrowser control
Posted on 1998-02-24
How do I get a VB5 form's KeyUp event to fire when none of
its controls are enabled or have focus? I've got the KeyPreview property set to True, but the KeyUp event does not fire.
My form has one control on it: a WebBrowser control. Unless I explicitly click the control first, the form's KeyUp will never fire.
To see this behavior, create a new application. On the main form, drop a WebBrowser control. Then add the following code:
Private Sub Form_Load()
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)