Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Maximise a Form 4

Status
Not open for further replies.

Aiii

Technical User
May 7, 2003
18
AU
Hey,

I have a form that automatically starts up when the database starts up.

Now when the form is shown at startup it is not maximised and i find it really annoying to constantly keep maximising it.

I know this isn't a big problem, but if i can fix it then all the better.

Thanks
 
Put the following code in the forms OnOpen event procedure:

DoCmd.Maximize

This will maximize the form when for the form opens.

Bob Scriver

Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
Hey, glad to help you again. Thanks for the Star.

Bob Scriver

Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
Hi,
Ther are two ways to maximize the form automatically when opening.
Both the codes are written in "OnOpen" property of the form.

1. DoCmd.Maximize
This code has a drawback. This will maximize all the forms and Databse window resizing all the forms. If any of your forms are small in size(ie. you don't want them run on maximized window) this code is not good. This is good when all the forms are need to be run on Maximized window.

2.DoCmd.RunCommand acCmdAppMaximize
This will Maximize the Databse window not all the forms and reports.
Test both.
Choice is yours.

ZmrAbdulla.




 
Thanks for the choices ZmrAbdulla.


Alriiiiight, you can get a star too.
 
I have a similar problem, but slightly different.
I open my splash screen minimized. There is a button on the splash that I use to open two screens at once: the Main SwitchBoard that I want to open Maximized, and a Daily ToDo screen that I want to open on top of the Switchboard, Minimized and centered(with the edges and header otf the Switchboard showing beneth the ToDo list) The user checks daily assignments on the ToDo screens and then closes it to then show the full SwitchBoard which was under it . Hope the makes sense.

Problem is, I have a hard time getting the Switchboard to open Maximized under the Minimized ToDo list.

Any thots on how to do this?

Thanks
JDTTEK
 
ZmrAbdulla,

I have been searching for a way to do #2! Thank you, thank you, thank you!!!!!!!

(and have a star too!)

Brenda
 
Hi,JDTTEK
Try your "Todo" Form with the following settings
OnOpen Event =
DoCmd.RunCommand acCmdAppMaximize

BorderStyle = Dialog
AutoCenter = Yes
PopUp = Yes
Modal = Yes
Hope this will help
ZmrAbdulla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top