CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: tabcontrols

  1. #1
    Join Date
    Aug 2009


    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?

  2. #2
    Join Date
    Jun 2008

    Re: tabcontrols

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.