469,626 Members | 901 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Maximize a control when a form is maximized?

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
1 2374
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.

Similar topics

2 posts views Thread by Scott | last post: by
6 posts views Thread by Thomas | last post: by
3 posts views Thread by guy | last post: by
1 post views Thread by neeraj | last post: by
2 posts views Thread by John | last post: by
1 post views Thread by Brett Romero | last post: by
4 posts views Thread by Jassim Rahma | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.