Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

GUI - Margins & Padding

Posted on 2006-11-27
6
Medium Priority
?
476 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 48

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 400 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 48

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

610 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