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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change print statement position

Status
Not open for further replies.

vaughn9

Technical User
Sep 23, 2001
183
A print statement like the line below usually defaults to the top right hand corner of the form

Print "Hello World"

If I wanted hello world to appear at another position on the form how would I write code to do that.
 

You would use the CurrentX and CurrentY properties. However if say you are trying to center the text on the form then you will also want to use half of the TextWidth and TextHeight in your calculation for position (and maybe a little fudging depending upon exactly what you want to do).

(Oh! Yeah! Do you mean the top left[/o]?

Good Luck

 

vaughn9, have you read FAQ222-2244 yet? Have you had any success with using the currentx/y?

 
currentX and currentY worked fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top