Main screen form area dimensions

S

swas

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
 
P

plh

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

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
 
S

swas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top