Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture box alignment..quick question :-)

Status
Not open for further replies.

Aleena

Programmer
Oct 3, 1999
27
US
Is it possible to center the contents of a picture box within the picture box? Or should I just switch to a label or something? <br>
<br>
Thanks,<br>
Aleena
 
Below is a label inside a picture box that will centre<br>
after execution of the two lines of code below:<br>
<br>
Label1.Top = Picture1.Height / 2 - Label1.Height / 2<br>
Label1.Left = Picture1.Width / 2 - Label1.Width / 2
 
Thanks for your help :)<br>
<br>
Aleena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top