Dock

C

Craig Buchanan

I am trying to create a resizable form that has a tabcontrol and two
buttons. i would like the tabcontrol to resize w/ the form, have the
buttons keep position relative to the bottom-right corner of the form, and
not have the tabcontrol obscure the buttons.

I've tried a number of Dock variations to get this to work, including two
panels and the table layout control. I can't seem to get the right
combination of settings and controls... What am I missing?

Thoughts appreciated.

Craig Buchanan
 
F

Family Tree Mike

Craig Buchanan said:
I am trying to create a resizable form that has a tabcontrol and two
buttons. i would like the tabcontrol to resize w/ the form, have the
buttons keep position relative to the bottom-right corner of the form, and
not have the tabcontrol obscure the buttons.

I've tried a number of Dock variations to get this to work, including two
panels and the table layout control. I can't seem to get the right
combination of settings and controls... What am I missing?

Thoughts appreciated.

Craig Buchanan


Don't use the dock property, but rather you should use the anchor property.
Anchor the two buttons to the bottom right, and anchor the tab to all four
sides.
 

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