本文介绍了如何启用特殊键(ctrl-c、ctrl-v、tab、delete) Windows.Form.WebBrowser 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Window.Form,上面有一个 WebBrowser 控件.您如何使控件能够处理特殊键,例如用于在控件之间导航的 Tab 键?
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?
我在 activeX 和 mfc 控件中看到过这样做的答案,但在 .NET 控件中没有.
I've seen answers for doing this in activeX and mfc controls but not for the .NET control.
谢谢
推荐答案
Windows.Forms WebBrowser 控件是 activex 控件的包装器.你有属性 WebBrowserShortcutsEnabled
(MSDN 链接),但是,默认情况下应该是 true
.
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.
这篇关于如何启用特殊键(ctrl-c、ctrl-v、tab、delete) Windows.Form.WebBrowser 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!