Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / April 2006

Tip: Looking for answers? Try searching our database.

Form coordinates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 17 Apr 2006 04:36 GMT
Hi

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

Thanks

Regards
chris.nebinger@gmail.com - 17 Apr 2006 17:12 GMT
Inside the form:

Me.Top
Me.Left
Me.Height
Me.Width

OR:

Forms("FormName").Top
..etc

Chris
Bob Quintal - 18 Apr 2006 00:21 GMT
> Inside the form:
>
[quoted text clipped - 9 lines]
>
> 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

Signature

Bob Quintal

PA is y I've altered my email address.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.