On my form I have a label with caption, how do I make the label stay in the center of the form on resize?
Thanks,
-Sir Loin
Printable View
On my form I have a label with caption, how do I make the label stay in the center of the form on resize?
Thanks,
-Sir Loin
VB Code:
Private Sub Form_Resize() Label1.Move (Me.ScaleWidth - Label1.Width) / 2, _ (Me.ScaleHeight - Label1.Height) / 2 End Sub
Thank you so much! :)
One more question, how do I make the text get bigger on resize?
Thanks,
-Sir Loin
Unfortunately, to answer your last question wouldn't be as simple as it sounds - you will need so Resizer control on your form so it will re-scale fonts which are the biggerst problem. There are many controls available so here is just a one of them:
http://www.sharewareconnection.com/t...esizer-ocx.htm
or pick one from this google search results .
Thanks :)