Is there a way to center the Text in a picture box?
Printable View
Is there a way to center the Text in a picture box?
Sure.
------------------Code: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!