handling ctrl+mouse click on webbrowser control in winform
-
I created treeview and webbrowser control.When webbrowser control load website,treeview will buil DOM tree with checkbox node.So,I want press ctrl+mouse click to highlight one element(ex. div, span,...) on webbrowser,then node at treeview will be checked respectively. How can I do handle ctrl+mouse click on webbrowser control??
-
I created treeview and webbrowser control.When webbrowser control load website,treeview will buil DOM tree with checkbox node.So,I want press ctrl+mouse click to highlight one element(ex. div, span,...) on webbrowser,then node at treeview will be checked respectively. How can I do handle ctrl+mouse click on webbrowser control??
-
Please see this article. Easy way to add Keyboard and Mouse events to WebBrowser control[^] I think it may be helpful.
thanks so much!
-
thanks so much!
-
You're welcome. Thank you for the response. If you feel that the answer is helpful then you may consider to vote the answer.
By the way, I have one question. I want to get data in tag when I ctrl+mouse click on webbrowser, for example <div>abc...</div>. Then when I press ctrl+mouse click on webbrowser I will get abc..., so how can I do that? thanks!