RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums

How can I get Mouse Position?

Join Date: Jul 2007
Location: Denmark
Posts: 1
Reputation: Skullmagic is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Skullmagic's Avatar
Skullmagic Skullmagic is offline Offline
Newbie Poster

Solution Re: How can I get Mouse Position?

  #8  
Jul 25th, 2007
Dim MyPointAPI As POINTAPI
Private Type POINTAPI
  X As Long
  Y As Long
End Type

Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long

Public Sub Timer1_Timer()
  l = GetCursorPos(MyPointAPI)
  Label1.Caption = CStr(MyPointAPI.X) & ", " & CStr(MyPointAPI.Y)
End Sub
Last edited by Skullmagic : Jul 25th, 2007 at 5:38 am. Reason: Don't look good!!!
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:08 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC