Click to See Complete Forum and Search --> : Twip Counting
spud
Jan 31st, 2001, 05:12 PM
I have a picture box which when the mouse moves across it the Twips are counted. The box is grided every 55 twips. What I would like to do is to move a Number say 410 up by 1 every time the mouse total passies 55, 110, 165 etc so if I got to 165 twips the number would be 413 also I would like the number to decrease when the mouse moves back.
Anyone any Ideas?
Spud
darrenl
Feb 2nd, 2001, 10:47 AM
Spud.
410 + (twips\55)
the \ give integer result.
Darren.
spud
Feb 2nd, 2001, 04:41 PM
That would be nice!
Cheers
Spud
YoungBuck
Feb 2nd, 2001, 11:39 PM
Sorry rlculver but VB can do that for you ....
Private Sub Form_Load()
Debug.Print Me.ScaleX(Me.Width, vbTwips, vbInches)
End Sub
oh Sorry - But would you still like my program Spud?????
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.