473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Maximize and Popup Forms

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
4 6817

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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Godfried van Loo | last post by:
Dear all, I believe many people have this problem. I wanted to disable the minimize and maximize buttons in my popup window. It is impossible, I know, but I found something else... Using...
4
by: Shang Wenbin | last post by:
Hi, Can I maximize the current window(not a popup window) when enter a specified page in IE? It means no toolbar, no menubar, just like the popup window opened with: window.open("url","window...
2
by: Scott | last post by:
I've used the DoCmd.Mazimize function on my databases main opening form and now all the forms maximize on open, not just the form the command has been placed in. (onOpen) Any ideas why or how I...
6
by: Thomas | last post by:
I can set the maximizeBox property. But I didn't find a method to maximize a MDI child form. So I must do a duoble click at the maximize box. Anybody know a maximize function or method? Thank...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
3
by: guy | last post by:
VB2005 I have an MDI application, which displays modal forms correctly, and starts up with the MDI form maximized however for non modal forms behavious is unusual all forms have MaximizeBox,...
1
by: neeraj | last post by:
Hi people's I developed one MDI application with one MDI form and 2 child forms, form. Border style of first child forms set as Fixed3D and Window State set as normal (like dialog Box) and...
1
by: Paul H | last post by:
Access 2003 If my Customers form is maximized and I press a button on the form to open my Contacts form, is it possible to have the Contacts form as a floating form that I can drag round the...
1
by: gazelle04 | last post by:
I want to maximize all forms. I've entered DoCmd.Maximize on forms. The problem comes up when I return to the form from another form - It returned to Restore mode and all the other forms become...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.