I found Customize a panel with Autoscroll property at http://www.codeproject.com/KB/miscctrl/CustomAutoScrollPanel.aspx that is wrapper around a Panel
with AutoScroll = True
.
I like this control because it provides the "performScrollHorizontal" and "performScrollVertical" methods. Yet, it uses the Windows API functions instead of ScrollableControl
and its VerticalScroll
and HorizontalScroll
properties.
Is this a good control to use? I think it should be using ScrollableControl
instead of the Windows API. What do you think? Is there a better control available? Do I even need a control? I would think that ScrollableControl
provides everything I would need.
EDIT: I found the HScrollBar and VScrollBar controls. Should I be using them?
These two other controls are nice but do not give me a way to control the scroll bars like the above control does.
- A scrollable, zoomable, and scalable picture box at http://www.codeproject.com/KB/miscctrl/ScalablePictureBox.aspx
- Pan and Zoom Very Large Images at http://www.codeproject.com/KB/GDI-plus/PanZoomExample.aspx
What I really want is a control:
- that scrolls when the user moves the mouse toward the edge of the control,
- allows the user to pan
- allows the user to zoom
- supports using the mouse with Shift or Ctrl or Alt keys pressed
Any recommendations, help, or areas to look at is greatly appreciated. A control would be nice as I am not that good yet.