Images; MDI client bigger than its parent window?

  • Thread starter Michael A. Covington
  • 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!
 
M

Michael A. Covington

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top