How to make so that when you hover on WebBrowser1 pressed the left mouse button?
Button has an event MouseHover :
private void button2_MouseHover(object sender, EventArgs e) { } But on WebBrowser1 'e not MouseHover ...
How to make so that when you hover on WebBrowser1 pressed the left mouse button?
Button has an event MouseHover :
private void button2_MouseHover(object sender, EventArgs e) { } But on WebBrowser1 'e not MouseHover ...
The WebBrowser component is a wrapper above the native browser. Therefore, he does not have the usual events from the world of controlled controls.
One way is to use a timer:
private void Timer_Tick(object sender, EventArgs e) { var point = PointToClient(MousePosition); if (webBrowser.ClientRectangle.Contains(point)) { // мышь над браузером } } HtmlElement and work with it. If there is Flash or something else, then, apparently, it is only through WinAPI to try to send messages (I could be wrong). - Alexander PetrovSource: https://ru.stackoverflow.com/questions/535677/
All Articles