Solved

access How to get the absolute position of a control

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

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

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