Click to See Complete Forum and Search --> : Center Text in Picture Box
Is there a way to center the Text in a picture box?
MartinLiss
Nov 4th, 1999, 10:31 PM
Sure.
Const MYTEXT = "I'm centered"
Picture1.CurrentX = (Picture1.Width / 2) - (TextWidth(MYTEXT) / 2)
Picture1.CurrentY = (Picture1.Height / 2) - (TextHeight(MYTEXT) / 2)
Picture1.Print MYTEXT
------------------
Marty
Thanks alot. Worked great!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.