Print Page | Close Window

VB object mouseclick

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7322
Printed Date: 30 March 2026 at 10:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: VB object mouseclick
Posted By: Gullanian
Subject: VB object mouseclick
Date Posted: 16 November 2003 at 7:34pm

Hey guys, if anyone could help id be thankful!

Got a bit of code which gets the mouse co-ords when you move the mouse over the picture object.

Private Sub picture1_Mousemove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    MsgBox X & "|" & Y
End Sub

But it doesnt give out the co-ordinates when I do a mouseclick on the picture object, which is what I really need!  This doesnt work:

Private Sub picture1_Mouseclick(Button As Integer, Shift As Integer, X As Single, Y As Single)
    MsgBox X & "|" & Y
End Sub

Anyway thanks for any quick help on the matter




Replies:
Posted By: Gullanian
Date Posted: 16 November 2003 at 7:35pm
Oops my bad, solved it, mousedown works



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net