View Full Version : Maximising a form


aziz rasul
04-30-2002, 02:35 AM
When I open a form, it initially fits the whole screen. If I change to another window (the form is still open) OR go into design view of the form , the size of the form is reduced in size when I return back to form view of the form.

How do I ensure that when I return to the form that the size maximises automatically?

ColinEssex
04-30-2002, 03:11 AM
use the restore action

aziz rasul
04-30-2002, 03:45 AM
Where do I place this?

DBL
04-30-2002, 04:15 AM
Try putting it on the OnActivate of the form. Is you forms either set to Pop-up or Modul or are you trying to hide the Close/Min Max buttons?

ColinEssex
04-30-2002, 04:40 AM
To supplement DBL's answer. You can put it in a macro to run OnActivate.

Col
Hi Dawn !

Rich
04-30-2002, 04:54 AM
DoCmd.Maximise in the on load event

aziz rasul
04-30-2002, 05:00 AM
Doesn't seem to work. The forms is neither Popup or Modal. Also the Close button is set to No.

I discovered that the form's Border Style property was set to Dialog. Changing this to Sizable cured the problem.

aziz rasul
04-30-2002, 05:23 AM
Thanks Rich. I hadn't seen your post before my last reply. Your suggestion worked.

I would have thought that the Restore action\method would also have worked in the Activate event?

Rich
04-30-2002, 05:33 AM
Never found the Activate event to be useful for anything http://www.access-programmers.co.uk/ubb/smile.gif