Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Vertical Text Alignment / Top Margin

Posted on 2013-05-16
3
Medium Priority
?
344 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

730 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