Automatically Resize Controls

Sometimes you need to change the size of controls by changing the size of a container. For example, try this:

 Private Sub Form_Resize()	Picture1.Align = vbAlignLeft	Picture1.Align = vbAlignTopEnd Sub

Every sizing event that changes the form’s size also changes the size of the picture box. Make sure that the control you want to resize has the align property.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: