Solved

GUI - Margins & Padding

Posted on 2006-11-27
6
442 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
  • 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now