tabcontrols
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
    Posts
    1

    tabcontrols

    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
    Posts
    2,477

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center