Try this:
Private Structure POINTAPI
Public x As Integer
Public y As Integer
End Structure
Dim pt As POINTAPI
Private Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As
POINTAPI) As Integer
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
GetCursorPos(pt)
Debug.WriteLine(pt.x)
Debug.WriteLine(pt.y)
End Sub
"Tom" <re***@to.group> wrote in message
news:0a********************************@4ax.com...
Hi
I am trying to get the exact mouse coordinates as it moves over a
single menuitem on a context menu. As the menu item is not a control i
cannot find any way od doing this.
Any ideas?
Thanks
Tom