By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,705 Members | 1,829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,705 IT Pros & Developers. It's quick & easy.

Control Box Restore Button to Yield Common Form Size

P: n/a
Is there a way to set a common size for any form, when the user clicks on the
middle button in the form control box the restore button for a maximized form.
I'd like to have any maximized form, when it is restored be set to a common
size.

--
Message posted via http://www.accessmonster.com

Dec 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try some code like below in the on click event of the button you
mentioned
Private Sub Form_Click(Cancel As Integer)

Form.InsideWidth = 100
Form.InsideHeight = 100

End Sub

If you want the form to open to a certain size and only change size
when the button is clicked put the same code in the onload properties
of the form. Obviously the 100 is the size value you can change

Dec 10 '06 #2

P: n/a

For info the number value refers to a twip which is 1/1440 of an inch.
Therefore the value 100 is silly as your form will be tiny. About 15000
will set the width to be approx full page.

Dec 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.