Results 1 to 2 of 2

Thread: How do I capture the mouse cursor?

  1. #1

    Thread Starter
    New Member pjak's Avatar
    Join Date
    Feb 2000
    Location
    UK
    Posts
    7

    Exclamation

    Can anyone tell me how to capture an image of the mouse cursor to place in a picturebox or save as a file?

    If you know how please reply to this message.

    Thanks


  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116

    Talking

    Private Declare Function GetCursor Lib "user32" () As Long
    Private Declare Function DrawIcon Lib "user32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long

    private sub Form_load()
    DrawIcon Picture1.hdc, 0, 0, GetCursor()
    savepicture Picture1.image,"file.bmp"
    end sub

    this should help

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