Odd sizing problem in MDIChild

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've written an MDI program.

I have a picturebox placed on the child form with Dock set to fill and
SizeMode set to AutoSize. The image is loaded with the command pb1.Image =
Image.FromFile(strImageName)

My problem is that no matter how I try to adjust the size of the child, it
will not go above 1036 by 780. Have I hit some sort of limit? Most of the
images I want to use are far larger.
 
Ok, cancel this question. It looks like the problem was caused by the Dock
setting. Once I set Dock to none and set the Picturebox and form sizes
programmatically, the problem went away.
 

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

Back
Top