Solved

GUI - Margins & Padding

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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