View Full Version : Forms and resizing


bdubuc
02-12-2002, 12:02 PM
I tried many of the solutions I've found in this forum, but nothing seems to work.

I want all my forms to be maximized. I added a docmd.maximize in the switchboard Access created, but when I'm closing a form that I opened with the switchboard, everything becomes windowed again.

My forms all have the same setting:

Autoresize No
autoCenter Yes
popup No
BorderStyle Thin

I'd like to avoid writing code in every freaking form. There must be a "natural" of doing this???

Thanks to you all,
Ben
;0)

Pacer
02-15-2002, 12:12 AM
I have exactly the same problem that I have solved by using the DoCmd.maximise on every form. This causes nasty blinking 'though.

Is there a better way to do this.

bdubuc
02-15-2002, 12:54 AM
I haven't found one yet.

What I'm planning to do is to hide the window before calling the maximize. this way, I think the user won't see the resizing. I just hope that it won't have the same blinking effect.

Ernie Taylor
02-15-2002, 06:56 AM
I got round this by creating a form called startup (which just includes the name of the database), making this run on startup using tools/startup/display form "startup" , including a timer event in the startup form ontimer = startup (macro below)Timer Interval 500. Create the startup macro three lines 1. Open Form (the form you want to use)2.Maximise 3.Close (startup form). Leave all other properties alone and you should find all your forms will open maximised thereafter.