By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,335 Members | 2,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,335 IT Pros & Developers. It's quick & easy.

Form coordinates

P: n/a
Hi

Is it possible to get the left, top, height & width in pixels of a form when
it is running/displayed?

Thanks

Regards
Apr 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Inside the form:

Me.Top
Me.Left
Me.Height
Me.Width
OR:

Forms("FormName").Top
...etc
Chris

Apr 17 '06 #2

P: n/a
"ch************@gmail.com" <ch************@gmail.com> wrote in
news:11**********************@e56g2000cwe.googlegr oups.com:
Inside the form:

Me.Top
Me.Left
Me.Height
Me.Width
OR:

Forms("FormName").Top
..etc
Chris

Those values are in twips (1440ths of an inch)
to get pixels, as the OP requested, you have to convert those by
the number of pixels/inch, in both vertical and horizontal
planes because pixels are not always square.

Stephen Lebans includes some APIs and code for those conversions
in some demo database, I think the tooltips.mdb


--
Bob Quintal

PA is y I've altered my email address.
Apr 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.