Solved

GUI - Margins & Padding

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

939 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

10 Experts available now in Live!

Get 1:1 Help Now