Solved

access How to get the absolute position of a control

Posted on 2008-10-25
6
171 Views
Last Modified: 2013-11-28
ms access  How to get the absolute position of a control
0
Comment
Question by:pbridda
[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
  • 3
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 22803312
you can use the Top, left property of the control

0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 22803477

sub getPosition(ctl as string)
dim y,x
y=me(ctl).top
x=me(ctl).left

msgbox  "Left : " & x & " Top :" & y
end sub
0
 

Author Comment

by:pbridda
ID: 22803506
I have to find the screen absolute position in pixel.
Thank
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 22803568
are you pertaining to a form or control?

see this link

http://support.microsoft.com/kb/q210141/

what exactly are you trynig to do?
0

Featured Post

Independent Software Vendors: 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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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