Solved

Vertical Text Alignment / Top Margin

Posted on 2013-05-16
3
336 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now