C# - Get Smartphone Like Scrolling For A Winforms Touchscreen App ( Scrolling Panel )?Aug 5, 2011
After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a tablet laptop or touchscreen desktop.I put everything I want to scroll on a panel. Set autoscroll to true (which will show scrollbars)Now put this whole panel inside a groupbox.Shrink the groupbox until the scrollbars are hidden (visually hidden, not visible = false)
Now the fun part I am stuck at.I think I have to handle the mousedown, mouseup & mousemove on the panel to set the autoscrollposition so that when someone touches the panel and drags, it does it's scroll magic. Please help fill in the few lines of code in below method stubs. The msdn doc on autoscrollposition is very confusing since it returns negative numbers but needs to be set to positive with abs and what not.