Administrator
VB.NET Forum Admin
- Joined
- Jun 3, 2004
- Messages
- 1,462
- Programming Experience
- 10+
Hello,
I have an image inside a form that is contained in a container control such as a panel where the min size is set to the image size. This causes scrollbars to appear if the min size is outside that of the client bounds. This is nice, however, the natural "habit" when there are scrollbars and the content/photo is out of view is to click and drag the photo itself to reposition it, i.e. scroll the image by dragging the mouse. Anyone have any sample code for this?
Thanks
I have an image inside a form that is contained in a container control such as a panel where the min size is set to the image size. This causes scrollbars to appear if the min size is outside that of the client bounds. This is nice, however, the natural "habit" when there are scrollbars and the content/photo is out of view is to click and drag the photo itself to reposition it, i.e. scroll the image by dragging the mouse. Anyone have any sample code for this?
Thanks