maximizing form

G

Guest

I have a form that is designed as a dialog box. When it's executed from a
maximized form it will load as maximized, too. However, when it's executed
from a restored down form it loads restored down.

Loading maximized is annoying. How can I set it up to load restored down
regardless of the parent form's size?

Thanks!
 
F

fredg

I have a form that is designed as a dialog box. When it's executed from a
maximized form it will load as maximized, too. However, when it's executed
from a restored down form it loads restored down.

Loading maximized is annoying. How can I set it up to load restored down
regardless of the parent form's size?

Thanks!

Are you opening it from the parent form in Dialog.

DoCmd.OpenForm "FormName", , , , , acDialog
 
G

Guest

Thanks, Fred. The dialog box is opened from a parent form which has an on
open event:

Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize

End Sub

Is this causing the problem?
 
D

Dirk Goldgar

JohnLute said:
I have a form that is designed as a dialog box. When it's executed
from a maximized form it will load as maximized, too. However, when
it's executed from a restored down form it loads restored down.

Loading maximized is annoying. How can I set it up to load restored
down regardless of the parent form's size?

If you set the form's PopUp property to Yes, it will stay in restored
state even when other forms are maximized.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top