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 / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Main screen form area dimensions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
swas - 14 Jul 2007 16:52 GMT
Hi,

Is it possible to determine the main Access window form area current height,
width etc... dimensions?

I'm trying to auto layout a few forms next to one another, and would also
like to respond to a main Access window resize event also.

I can't find anything obvious under application or screen objects.

Thanks in advance.

swas
plh - 14 Jul 2007 23:46 GMT
>Hi,
>
[quoted text clipped - 9 lines]
>
>swas

swas,
Forms have a width property, form sections have a height property:

Dim test
test = Me.Width
test = Me.FormFooter.Height
test = Me.FormHeader.Height

Note that the result will be in twips:
http://dictionary.reference.com/browse/twip
Regards,
plh

Signature

Where are we going and why am I in this HAND BASKET??

swas - 15 Jul 2007 03:54 GMT
plh,

Yes I understand this for forms within my database. I am trying to fill the
main access window with several forms, and adjust their width to fill the
main Access database window (I'm sure there is a correct name for this
window, but I don't know).

To adjust my forms for this, I need to know
a) What the main window size is, and relative position, and
b) Detect if the main db window is adjusted so the customer view is
maintained.

I can't just use maximise as the maximised form takes the whole screen. If I
use popup the forms are overlapping, and out of whack if the main db window
is adjusted.

Thanks for the response.

swas

> >Hi,
> >
[quoted text clipped - 22 lines]
> Regards,
> plh
 
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.