Sign in to follow this  

[.net] KeyDown / KeyUp events in WebBrowser

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this