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.
 
Back
Top