Pop Up Boxes not Maximised

jcaswell

Registered User.
Local time
Today, 01:05
Joined
Mar 16, 2002
Messages
18
This ought to easy and I feel sure that the solution is in one of the Properties fields in the Form: I want to call one form from another as a 'Pop Up' - at the moment, if the 'calling' form in maximised, the one I want to Pop Up is also maximised. I want it to stay the size that I designed it, and appear as a small window over the calling one.

Can someone help, please
 
Does your small popup form have a DoCmd.Maximize command in the forms OnOpen or OnLoad event? Placing a DoCmd.Restore in the forms OnOpen event might fix your problem.

I prefer to force the size of all my forms. I do not use maximized forms so that my program has a more "polished" look. My opinion of course!

This is what I use in all my forms OnOpen event...

Code:
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open

    'MsgBox "InsideHeight = " & InsideHeight & vbCrLf & vbLf & "InsideWidth = " & InsideWidth
    InsideHeight = 5450
    InsideWidth = 7870
 
You can also use:
DoCmd.MoveSize

The actual move options are optional, so you can just change the size attributes if you want.
 

Users who are viewing this thread

Back
Top Bottom