Results 1 to 1 of 1

Thread: VB - Show/Hide Mouse Cursor

  1. #1

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    VB - Show/Hide Mouse Cursor

    Add two command buttons (Command1 , Command2) and add the following code :

    VB Code:
    1. Private Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)
    2.  
    3. Private Sub Command1_Click()
    4. ShowCursor (True)
    5. End Sub
    6.  
    7. Private Sub Command2_Click()
    8. ShowCursor (False)
    9. End Sub
    10.  
    11. Private Sub Form_Load()
    12.  Command1.Caption = "show"
    13.  Command2.Caption = "hide"
    14. End Sub
    Last edited by manavo11; Mar 13th, 2003 at 07:32 AM.


    Has someone helped you? Then you can Rate their helpful post.

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