Make form size maximized without using the Maximize method

rockman

Senior Member
Local time
Today, 10:07
Joined
May 29, 2002
Messages
190
I would like to create a form that completely occupies the workspace of the Access Application window but without using the maximize method.

I need something like this: DoCmd.MoveSize 0,0,?,?

But don't know how to find values for ? and ?. The situation is fairly complicated because 1 OR MORE commandbars may be present. Therefore, it is not enough to merely know the size of the Access Application window.

Thanks for any help,
Jeff
 
Thanks Alexande,

The GetClientRect API was just exactly what I needed!

Cheers,
Jeff
 
This code is great, but I'm encountering some errors. I have a form that opens automatically when the database opens. It also hides the toolbars, etc. I am left with a gray space, where the toolbar previously appeared. I have tested calling the function on open and on load with the same effect. Also, if the user resizes their access window, scrollbars are added which does not work well (the application was made to run small in the bottoom right corner and users frequently have to resize because the last time they used access they had it maximized). Any suggestions?
 

Users who are viewing this thread

Back
Top Bottom