How to enable special keys (ctrl-c, ctrl-v, tab, d

2019-05-27 11:47发布

问题:

I have a Window.Form that has a WebBrowser control on it. How do you enable the control to process special keys like the Tab key for navigating between controls?

I've seen answers for doing this in activeX and mfc controls but not for the .NET control.

Thanks

回答1:

The Windows.Forms WebBrowser control is a wrapper on the activex control. You have the property WebBrowserShortcutsEnabled (MSDN Link), however, that should be true by default.