Web浏览器控制窃取快捷方式
我的 .NET Windows 窗体应用程序中的 Webbrowser 控件在聚焦时会窃取快捷方式。 为了能够使用 Alt + F4,我必须先单击一个控件。
目前“WebbrowserShortcuts = false
”但它仍然相同。
有没有办法阻止这种令人恼火的行为?
Webbrowser Control in my .NET Windows Form application is stealing shortcuts when on focused. To able to use Alt + F4
I had to click a control first.
Currently "WebbrowserShortcuts = false
" but it's still same.
Is there a way to stop this irritating behaviour?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 winforms WebBrowser 中加载 Silverlight 时遇到了这个问题,我通过将以下内容添加到
元素来解决它:
...当然,这意味着我必须提供一个 id
silverlightControl
到我的如果您只有 HTML,也许您可以在
document< 上调用
focus()
/code> 或者也许是第一个超链接?I had this problem when loading Silverlight inside a winforms WebBrowser and I solved it by adding the following to the
<body>
element:...which, of course, meant I have to give an id of
silverlightControl
to my<object>
element:If you only have HTML, maybe you can call
focus()
on thedocument
or perhaps the first hyperlink?