Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I'm using WebBrowser control to show a .svg vector image. The problem is that I would like to smoothly scroll the image from the bottom to the top.
I've already managed to make WebBrowser go directly to the bottom, using:
C#
this.webBrowser1.Navigate("javascript:scroll(0,1000);");

But I can't imagine a way for smoothly scrolling up...
Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 16-Dec-15 13:15pm    
To help you, one would need to know what was "not smoothly". Do you want to animate scrolling, or something?
—SA
Eilson Tang 16-Dec-15 22:18pm    
What do you mean by smooth scrolling, I can't imagine or visualise it, can you explain a bit more?
Member 12043846 17-Dec-15 9:33am    
Like if it was scrolled by the mouse, not just going to a position... (sorry for my bad English)

1 solution

By no means the answer or close to it, but try this:

It will take work but use the ScriptManager in ASP.Net along with bits of this to get what you want. Tou may need a JavaScript or ASP.Net Time though.

https://css-tricks.com/snippets/jquery/smooth-scrolling/[^]
 
Share this answer
 
Comments
Member 12043846 17-Dec-15 9:40am    
Bingo! Thank you very much...

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