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

Maximize a control when a form is maximized?

P: n/a
PW
Hi,

Is it possible to make a control bigger or maximize it also when the
user maximizes the form? I have a calendar control on a form and I
would like to automatically make it bigger when the form is maximized
so the user can see more detail.

I see there is only a height property for a form and no width
propertly. The calendar control on the form has both.

Any ideas?

-paul

Jun 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Detail section has the Height property. Form itself has the Width property.

You can set your controls's height and width in the forms OnResize event:

Private Sub Form_Resize()

Const TPI As Long = 1440 'number of TWIPS per INCH.
Me.lboID.Height = 2 * TPI 'set height to 2 inches
Me.lboID.Width = 2 * TPI 'set width to 2 inches

End Sub
Jun 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.