Form size

  • Thread starter Thread starter gaugust
  • Start date Start date
G

gaugust

In Access 2003 I have a form with command buttons that allows the user to
view some charts. The form is sized using the command:
"DoCmd.MoveSize 3440, 680, 11000, 9150" in the On Open, On Resize and On
Activate events.
When one of the buttons on the form is selected and the chart is displayed
the user maximizes the chart. The problem that I am having is that once the
user closes the chart and returns to the form the form becomes maximized and
does not display using the dimensions of my movesize command. How can I can
the form to not maximize but stay at the dimensions of the movesize command.
Thanks.
 
have you considered only using the on open event only? or do your
users require the form be maximized? you can also disable the
maximize button...

Try this

Private Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 5.06 3440, 680, 11000, 9150
End Sub
 
You can disable the max button by selecting "Min Enabled" under Min
Max buttons property...
 
Back
Top