Solved

GUI - Margins & Padding

Posted on 2006-11-27
6
451 Views
Last Modified: 2008-01-09
Hi experts. I am a novice with vb and i am currently designing a user interface in vs 2005. I have read up on the margin and padding properties however they dont seem to be following their settings. For example: I have added a tab control on to a base form that i imported from another project. I have set the left margin of the tab control to '10' and have set the padding of the base form to '10'. Shouldn't this enforce a space of 20 pixels between the form border and the left edge of the tab control??? Am i missing something?
0
Comment
Question by:staritsj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 100 total points
ID: 18024059
The "padding" and "margins" you are refering to are used when you Dock a control. If you set the padding to 10 for each of the sides on the form, and set the Docking to Fill for the tab control, there will be a gap of 10 all the way around.

Wayne
0
 

Author Comment

by:staritsj
ID: 18024321
Thanks Wayne. So are you saying that the "padding" and "margin" settings will only be enforced when relating to "docked" controls??
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 18025105
Yes.
0
 

Author Comment

by:staritsj
ID: 18057825
Final clarrification before awarding you the points Wayne. Say if i have 2 text box controls within a group box and both have a margin of 3 shouldn't they be forced to be 6 pixels apart or do the 'snap' lines just provide the snap to 6 pixels rather than 'enforcing' it?
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question