How to sense mouseover across a web control in C# program
Posted on 2010-09-01
I am developing a C# program to replace an existing tool currently in production. One of the requirements I have is to perform a refresh "keepalive" on a website loaded inside the Web Browser control. To accomplish this, I've creaed a timer to refresh the page every 3 minutes.
Along with the timer, I want to sense whether the mouse is inside the Web Browser Control indicating the user is most likely active, and therefore stopping the timer (starting the timer again when the mouse leaves the control).
I tried inserting a panel, putting the Web control inside the panel, and assigning mouseEnter and mouseLeave events, but the web control (even though inside the Panel object) does not appear to be impacted by these settings.
Anyone have an idea how I can accomplish this?