Form Open in Maximize (1 Viewer)

moi

Member
Local time
Today, 15:57
Joined
Jan 10, 2024
Messages
223
Hello all,

My form opens in maximize even there is no maximize command on open/current/load. How to avoid this to happen..

Thank you,
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 02:57
Joined
Feb 28, 2001
Messages
27,222
It was probably saved maximized. Open the form in design mode and normalize it, then save it.
 
  • Like
Reactions: moi

bob fitz

AWF VIP
Local time
Today, 08:57
Joined
May 23, 2011
Messages
4,727
Hello all,

My form opens in maximize even there is no maximize command on open/current/load. How to avoid this to happen..

Thank you,
Not sure why that would happen.

Have you tried Docmd.Restore it in forms open event
 

bob fitz

AWF VIP
Local time
Today, 08:57
Joined
May 23, 2011
Messages
4,727
Are using Tabbed Documents rather than Overlapping Windows?
 

moi

Member
Local time
Today, 15:57
Joined
Jan 10, 2024
Messages
223
Are using Tabbed Documents rather than Overlapping Windows?
Am using Overlapping Windows sir.. Id tried your suggestion "docmd. restore".. Let me see if this work..
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:57
Joined
Feb 19, 2002
Messages
43,346
Why not try the no code method first? If you were working on the form maximized in design view, then that is the problem. Fix the actual problem. Don't use code bandaids.
 

moi

Member
Local time
Today, 15:57
Joined
Jan 10, 2024
Messages
223
Why not try the no code method first? If you were working on the form maximized in design view, then that is the problem. Fix the actual problem. Don't use code bandaids.
Hi pat,

Yes the form was set to maximized while working.. How to fix then, can you pls help.. Some of my form when open it is maximized even no code to maximize..and some form will open in not maximize even i put maximize code on it..
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:57
Joined
Feb 19, 2002
Messages
43,346
Did you follow the earlier directions to open the form in design view, size it correctly and save it. It should then open to the size it was saved as. Or you can use the size to fit option on the menu and then save and close and reopen.
 
  • Like
Reactions: moi

moi

Member
Local time
Today, 15:57
Joined
Jan 10, 2024
Messages
223
Did you follow the earlier directions to open the form in design view, size it correctly and save it. It should then open to the size it was saved as. Or you can use the size to fit option on the menu and then save and close and reopen.
Hello pat,

Yes i followed, open the form (mainmenu) in design, then maximize it, save, close..open again, open one form through my button, close the form, then my mainmenu (navigation) form resize again to smaller size (see attached), i wanted to remain in maximize as this is my mainmenu (navigation) form where my buttons sits..
 

Attachments

  • Screenshot (96).png
    Screenshot (96).png
    31 KB · Views: 8

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:57
Joined
Feb 19, 2002
Messages
43,346
Yes i followed, open the form (mainmenu) in design, then maximize it, save, close..open again, open one form through my button, close the form, then my mainmenu (navigation) form resize again to smaller size (see attached), i wanted to remain in maximize as this is my mainmenu (navigation) form where my buttons sits..
This is the opposite of your earlier request.

If you always want your forms to be maximized, the easiest solution is to use the tab view. Otherwise, each form should maximize itself in the open event.
 

Gasman

Enthusiastic Amateur
Local time
Today, 08:57
Joined
Sep 21, 2011
Messages
14,350
Hello pat,

Yes i followed, open the form (mainmenu) in design, then maximize it, save, close..open again, open one form through my button, close the form, then my mainmenu (navigation) form resize again to smaller size (see attached), i wanted to remain in maximize as this is my mainmenu (navigation) form where my buttons sits..
Upload a DB that shows the issue.
Could just use DoCmd.Maximize in the form Activate event perhaps?
 

Users who are viewing this thread

Top Bottom