0

I have a user control with picturebox on it. I want the picturebox size to remain the same, but the form that contains the user control changes the hight of the control and the picturebox's height changes. Can I somehow keep the height (and width) constant?

Mike
  • 21
  • 2

1 Answers1

2

If the picture box is docked or has anchors set, it "follows" the parent's height (and width, if the correct anchor/docking is configured).

Please check whether you set the Dock and Anchor properties correctly. See also this tutorial.

Community
  • 1
  • 1
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291