Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Is it possible to load more content on a web browser control when the user scroll down? Or when user takes the mouse to the bottom of the web browser control? I tried and I couldn't find any event to do that. Give suggestions if anyone know ? :) And this is a C# windows form application.
IDE : Visual Studio
Framework : 4.0
Language : C#
Posted

1 solution

Because there isn't any such an event which will do that, the content loaded in the WebBrowser control is based on your HTML content, the HTML document that you have loaded into it. So the mouse interactions are controlled by the HTML document, rather than your Web Browser and forcing the control to take actions in such cases is not a good idea.

To do that, I will suggest that you edit the web page that you are loading. JavaScript provides functions and features that you can use to load the content when user reaches a position on the document using the scrollbar. For example, this one http://jscroll.com/[^].

You can also handle the mousemove events and determine whether mouse is at the bottom most location in the HTML DOM, do not track these changes using the WebBrowser control, it is of no use!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900