Images; MDI client bigger than its parent window?

  • Thread starter Thread starter Michael A. Covington
  • Start date Start date
M

Michael A. Covington

I'm writing a program to experiment with image processing.

The image is displayed in a picturebox on a form which is an MDI child of
the main form.

The main form is maximized. The picturebox and the child form are set to
autosize.

For the most part, this achieves what I want: the child form resizes itself
to fit the image, and if the image is a little bigger than the parent form,
then the parent form gets scrollbars.

But the child form does not seem to be able to become much bigger than the
main form, even though it sometimes needs to.

What is the best way to display large images so that they are full size and
scrollable? Am I barking up the wrong tree?

Thanks!
 
Solved it. Here is how to make a large image scrollable:

PictureBox goes in a Panel which goes on the form.

PictureBox has Autosize turned on.

Panel has AutoScroll turned on.
 
Back
Top