I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It’s nice that the .NET Framework provides this ScrollControlIntoView method, however, for added usability, it would also be nice if there was an easy way to animate so that it is easy for the user to understand that the Panel was automatically scrolled.
Has anyone ever encountered this or have any ideas as to how to tackle it?
You could subclass
Panel, add aTimer, and overrideScrollIntoView()in order to do this all within your newAnimatedScrollPanel. I’m pretty sure you’ll have to do it this way in order to use certainprotectedmethods, such asScrollToControl()which returns aPoint(used byScrollIntoView).