PictureBox on a Form with Scrollbars?

VBAHole22

Contributor
Joined
Oct 21, 2003
Messages
432
Location
VA
I can't seem to figure out what seems to be a simple task.
I have a tool that when clicked loads an image into a picture box on a win form. The images can be all different sizes.
The goal is to make a fixed size win form that will hold the picture box. The picture box should expand to accomodate larger images and the user should be able to scroll to view the entire image.

I tried adding scrollbar controls but I don't know how to hook up the scroll event.

I also tried to use Autoscroll on the form but it doesn't actually scroll the picture box around.

There has to be a way to do this but I'm missing it. Any suggestions?
 
Back
Top