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

Maximize and Popup Forms

P: n/a
I have an Access 2K popup form to which I have added buttons to run
DoCmd.Maximize
The problem is the form opens full height on the screen, with the
bottom of the form hidden under the Windows taskbar.
Is there a way to maximize the form so that a portion of it is not
hidden under the taskbar?
thanks,
lq

Nov 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

lauren quantrell wrote:
I have an Access 2K popup form to which I have added buttons to run
DoCmd.Maximize
The problem is the form opens full height on the screen, with the
bottom of the form hidden under the Windows taskbar.
Is there a way to maximize the form so that a portion of it is not
hidden under the taskbar?
thanks,
lq


Instead of maximizing the form, why not size the form to the size you
want? DoCmd.MoveSize Right, Down, Width, Height

Have a look at the Visual Basic help for a further explanation.

Nov 13 '05 #2

P: n/a
I have maybe 500 users, using every possible screen resolution. I can
measure the users screen in code and size the form in code using
DoCmd.MoveSize, but since a user can change their resolution while the
application is open, I need to do this every time I want to maximize a
form.
But first I need to determine the height and location of the user's
task bar each time a form opens.
That's a lot of code and API calls to maximize a form.
Then there's the issue of restoring it, though I can restore it to a
preset size, which is not desirable either.
There must be way to do this using a method of Maximize?
lq


Tanis wrote:
lauren quantrell wrote:
I have an Access 2K popup form to which I have added buttons to run
DoCmd.Maximize
The problem is the form opens full height on the screen, with the
bottom of the form hidden under the Windows taskbar.
Is there a way to maximize the form so that a portion of it is not
hidden under the taskbar?
thanks,
lq


Instead of maximizing the form, why not size the form to the size you
want? DoCmd.MoveSize Right, Down, Width, Height

Have a look at the Visual Basic help for a further explanation.


Nov 13 '05 #3

P: n/a

lauren quantrell wrote:
I have maybe 500 users, using every possible screen resolution. I can
measure the users screen in code and size the form in code using
DoCmd.MoveSize, but since a user can change their resolution while the application is open, I need to do this every time I want to maximize a form.
But first I need to determine the height and location of the user's
task bar each time a form opens.
That's a lot of code and API calls to maximize a form.
Then there's the issue of restoring it, though I can restore it to a
preset size, which is not desirable either.
There must be way to do this using a method of Maximize?
lq


Tanis wrote:
lauren quantrell wrote:
I have an Access 2K popup form to which I have added buttons to run DoCmd.Maximize
The problem is the form opens full height on the screen, with the
bottom of the form hidden under the Windows taskbar.
Is there a way to maximize the form so that a portion of it is not hidden under the taskbar?
thanks,
lq


Instead of maximizing the form, why not size the form to the size you want? DoCmd.MoveSize Right, Down, Width, Height

Have a look at the Visual Basic help for a further explanation.


OK, that is a different kettle of fish. I suggest you have a look at
ShrinkerStretcher here.

http://www.pcsoftland.com/developmen...-MS-Access.htm

Nov 13 '05 #4

P: n/a
Tanis,
Thanks for the tip on ShrinkerStretcher shareware. It looks like
something that could be useful in the future but not on this
application. I don't want to be distributing an mdb with the app to
hundreds of users, and this Access app is an Access Project (.ade) and
I don't want to deal with that headache.

All I really need to do is to figure out how to measure the usable part
of the Windows screen (screen minus the task bar and the location of
the task bar.)

The problem, as it turns out, is in using Maximize on a sizeable popup
form in Access opens the form full screen size, disrespecting the task
bar. Not the case with dialog popup forms. But in this case sizeable is
the only option.
lq

Tanis wrote:
lauren quantrell wrote:
I have maybe 500 users, using every possible screen resolution. I can
measure the users screen in code and size the form in code using
DoCmd.MoveSize, but since a user can change their resolution while the
application is open, I need to do this every time I want to maximize a
form.
But first I need to determine the height and location of the user's
task bar each time a form opens.
That's a lot of code and API calls to maximize a form.
Then there's the issue of restoring it, though I can restore it to

a preset size, which is not desirable either.
There must be way to do this using a method of Maximize?
lq


Tanis wrote:
lauren quantrell wrote:
> I have an Access 2K popup form to which I have added buttons to

run > DoCmd.Maximize
> The problem is the form opens full height on the screen, with the > bottom of the form hidden under the Windows taskbar.
> Is there a way to maximize the form so that a portion of it is not > hidden under the taskbar?
> thanks,
> lq

Instead of maximizing the form, why not size the form to the size you want? DoCmd.MoveSize Right, Down, Width, Height

Have a look at the Visual Basic help for a further explanation.


OK, that is a different kettle of fish. I suggest you have a look at
ShrinkerStretcher here.

http://www.pcsoftland.com/developmen...-MS-Access.htm

Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.