|
-
Dec 20th, 2018, 12:42 AM
#1
Thread Starter
New Member
How to do smooth scrolling?
I have a form with controls that are created in runtime that can become larger than the form window (and easily larger than the screen), so want the user to be able to scroll smoothly when this happens.
By smooth scrolling I mean active scrolling while the mouse button is pressed. Just like when you scroll on a browser. Currently I'm using AutoScroll and that only scrolls after the mouse button is released. I am not scrolling text - only controls that can vary in number and dimensions.
Have tried putting a call to Invalidate and Refresh in the Scroll event, but this does nothing.
Have tried using AutoScroll on the main form and in a panel in the form with no change.
Have confirmed that the Scroll event is being called in both cases as the mouse moves.
Searched on google for 2 hours and tried every solution I could find. None have worked.
What am I missing? This should be child's play.
Windows 10
VB.Net on Visual Studio 2015
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|