CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    29

    Simple: placing controls uniformly inside a panel

    Hello, this is my first post so I hope I dont break any rules.

    But I have a basic question. I want to create a control which is a panel, with in total maybe 10 other controls inside of it, mostly of the same type. What I want to do is instead of manually placing them I want them to anchor/dock the controls so that they are a set distance from the left edge of the panel and a set distance from the rest of the controls, vertically.

    Any tips of how to achieve this? Can't seem to get Anchor/Dock to work the way I want it to.

  2. #2
    Join Date
    Aug 2005
    Location
    Seattle, Wa
    Posts
    179

    Re: Simple: placing controls uniformly inside a panel

    Maybe using a TableLayoutPanel to contain your controls will work for you.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured