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

logging x and y coordinates in a file

Status
Not open for further replies.

jimboo

MIS
Mar 15, 2002
18
GB
Hi,

Can anyone tell me how i can log (in a file) the x and y coordinates when a user clicks on a picture box in embedded visual basic 3.0?

thanks
 
Hi,
Don't know much about VB 3.0 but in VB 6.0 there is a PictureBox mousedown event which gives you the xy coordinates e.g.

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Open "file path" For Append As #1
Print #1, X, Y
Close #1
End Sub

Also, you could ask your question in the Visual Basic 3 & 4 forum

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top