• Advertisement
Sign in to follow this  

[.net] KeyDown / KeyUp events in WebBrowser

This topic is 3387 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to open a form in fullscreen with a WebBrowser control. I need to capture KeyDown and KeyUp events but it seems that since the WebBrowser control has focus those events are not being recieved by the form. So I have created a new control and inherited the WebBrowser control. Inside this I am adding KeyDown and KeyUp event handlers. But I get a NotSupportedException when I attempt to add the events saying "Event KeyUp is not valid on this ActiveX control". How can I capture these events?

Share this post


Link to post
Share on other sites
Advertisement
PreviewKeyUp works but not quite enough for my needs. I went with a global key hook instead but if anyone knows how to capture those events without one please let me know.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement