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 ...

    1 answer 1

    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)) { // мышь над браузером } } 
    • Yes, I understood it // mouse above the browser, but how can I get to press the left mouse button when the mouse is above the browser? - Sauron
    • @Sauron - What is the content in the browser at this moment? If there is html, then you can get the 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 Petrov