PictureBox and TabControl objects arranged

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

Guest

Hey all, I would like to position a PictureBox such that its size does not
alter (with changes to the size of the window). However, I would like the
TabControl object to increase in size as the window is increased in size.
The PictureBox is on top of the TabControl.

I have set the PictureBox to dock to nothing and I have set the TabControl
to dock to the bottom. However, as the window is increased in size a larger
and larger gap grows between the PictureBox and the TabControl. Is there a
way to set the top of the TabControl object to the bottom of the PictureBox
object?

Thanks,
Novice
 
you can set the forms DockPadding.Top value to the Height of the picturebox
and set the TabControl.Dock to Fill. Alternatively use Anchor instead of
Dock.
 
Back
Top