I have a Form with a Web Browser, I don’t want to show the scrollbars in the web browser, but I want to allow the user to scroll down the website with the mouse wheel.
How can I do it ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT
After much work, I’ve gotten a solution!
I used VB.net and then converted it over to C#:
Now, add this text file to your resources (or wherever).
Now, on the line where it says
scriptEl.innherHtml = My.Resources.TextFile1;, just put in the second file (the javascript).On the line
window.scrollBy(0,-delta*20), change the 20 to whatever number you feel best represents normal scrolling. 20 felt decent to me.The C# code needs to be put inside of the ‘DocumentComplete’ event for your WebBrowser object.
Hope that helps! It worked for me 🙂