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

Graphics Help

Status
Not open for further replies.

Brenton

Technical User
Jul 29, 2002
43
US
I am new to VB Graphics. I just bought the book VB Graphics programming. I am trying to set a picture box scale to 1 inch, I want a grid spacing of 1 inch, and have X Y zero at Picture box center. Is there a website someone can refer me to, or can anyone e lend me some of there expertise?


Thanks
Brenton
 
To make center of your picure box = (0,0), try this:

Private Sub Form_Load()

With Picture1
.Left = -.Width / 2
.Top = -.Height / 2
End With

End Sub
 
You can't make grid spacing of one inch. The maximum spacing is 1188 twips. One inch is 1440 twips. Look at Tools/Options/General.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top