Solved

Vertical Text Alignment / Top Margin

Posted on 2013-05-16
3
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delete table fields 3 48
Balance After Payment 12 62
vb.net dbnull syntax 1 58
Access Schema Relationship Design for Multi-Level Chart of Accounts 17 81
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

734 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