Results 1 to 2 of 2

Thread: Detecting Mouse X and Y Co-ordinates on an ActiveX Control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Hi,
    How can I detect the Mouse X and Y Co-ordinates on an ActiveX Control.

    Thanks
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    If you wrote this ActiveX control, then you should've created a MouseMove event as well., because most of all ActiveX controls have MouseMove event. So anyway, if you do have ti, then you already have coordinates passed as arguments. Here's an example:

    Code:
    Private Sub MyControl_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        MsgBox "X: " & X & vbCrlf & "Y: " & Y
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width