Click to See Complete Forum and Search --> : tabcontrols


Failz
August 14th, 2009, 11:19 AM
I have a form that i want to have a tabControl on it....

I currently have it set to fill the page by the code tabControl1.Dock = DockStyle.Fill;

Problem that i have with it is basically it fills to much on the top.

I did find somthing that is supposed to work but it doesn't for some reason called Dockpadding

their code looked like label1.DockPadding Top = 10; But for some reason i can't see DockPadding in here or that code won't work. Can anyone help?

BigEd781
August 14th, 2009, 12:05 PM
The property is called "Padding", but you may not even need that. Just place your tab control inside of a panel and set DockStyle to fill. Now you can just re-size the panel and use it as a container. Either way will work.