Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...