Solved

Vertical Text Alignment / Top Margin

Posted on 2013-05-16
3
339 Views
Last Modified: 2013-05-16
Can anyone explain how to use the top margin command...

I have used txtbox.TopMargin = 1 but it does nothing whatsover but when i set the top margin on the properties it works fine.  I therefore assume the syntax is not correct but it does not error?
0
Comment
Question by:SweetingA
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 39172038
This measurement is in "Twips" if you want to use it in code.
1 Inch=1440 Twips

So try using 1440 instead of 1 (in your code)
0
 

Author Closing Comment

by:SweetingA
ID: 39172054
So easy when you know it, thanks
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39172140
LOL

Yes, it is funny.

Every once in a while, (when I am in a rush), I forget too...

Odd how you can enter Inches in the property box, but MS expects you to "magically" know, not only about twips, but also somehow know how they relate to inches... (1 in=1440 twips)

It is mentioned in the help files (albeit at the very end...)
http://msdn.microsoft.com/en-us/library/office/ff834473%28v=office.15%29.aspx

Glad I could help.

;-)

JeffCoachman
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 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