PictureBox and TabControl objects arranged

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
 
M

Mick Doherty

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.
 

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