简体   繁体   English

VB.NET WebBrowser控件单击事件

[英]VB.NET WebBrowser Control Click Event

The webbrowser control doesn't have a lot of the events like the rest of the controls. Web浏览器控件没有像其他控件一样有很多事件。

For instance, there's no MouseMove or Click events in the WebBrowser control. 例如,WebBrowser控件中没有MouseMove或Click事件。

How would one go about registering a Click or an interaction with the WebBrowser control? 如何注册一个Click或与WebBrowser控件的交互?

The mouse and keyboard events can be handled from the Document Body of the WebBrowser control. 可以从WebBrowser控件的文档主体中处理鼠标和键盘事件。 take a look at this post, it was very useful for me, hope it will help you too 看看这篇帖子,对我来说非常有用,希望它也能对您有所帮助

http://pradeep1210.wordpress.com/2010/03/19/easy-way-to-add-keyboard-and-mouse-events-to-webbrowser-control/ http://pradeep1210.wordpress.com/2010/03/19/easy-way-to-add-keyboard-and-mouse-events-to-webbrowser-control/

Regards, 问候,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM