Solved

access How to get the absolute position of a control

Posted on 2008-10-25
6
167 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 119

Expert Comment

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

0
 
LVL 119

Accepted Solution

by:
Rey Obrero 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 119

Expert Comment

by:Rey Obrero
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

762 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

22 Experts available now in Live!

Get 1:1 Help Now