Switchboard Maximizing Problem

V

Vilem Sova

I have a switchboard form which (obviously) opens other forms. My problem is
that whenever I return to the switchboard from a form that was maximised,
the switchboard itself then appears maximised. It does this regardless of
whether I just make the switchboard form invisible and then open the other
form, or if I close the switchboard form before opening the other form.
However the problem does not occur if the switchboard form opens another
form that is not maximised.

The only thing I've found that keeps the switchboard form from maximising is
by setting the popup property to true. However this sets the switchboard to
be on top of all other forms and I don't want to do that, as I want the
switchboard form to stay open in some cases in the background.

Is there a way of keeping the switchboard un-maximised without setting the
popup property to true?

Thanks,
Vilem Sova
 
J

Jeff Conrad

Put a DoCmd.Restore line in the Switchboard form's Activate event.

Private Sub Form_Activate()
DoCmd.Restore
End Sub

That should solve your problem.
 
A

Allen Browne

The form's Activate event fires when it receives focus, so use this event to
restore the window size:

Private Sub Form_Activate()
DoCmd.Restore
End Sub
 

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