I am building a control that shows images.
The control itself is 300 x 300 pixles but it shows images which are over 1000 x 500 pixels. What I want to know is how to use scroll bars to scroll in a control?
Printable View
I am building a control that shows images.
The control itself is 300 x 300 pixles but it shows images which are over 1000 x 500 pixels. What I want to know is how to use scroll bars to scroll in a control?
Easiest way would be to make your control as big as the image inside it, put your control inside of a Panel, and set the Panel's AutoScroll property to true. Or have your control extend Panel so it inherits the scrolling ability.