VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Invisible Mouse

by Mike Gerwitz (5 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Squeak be gone! Have you ever wondered how to hide the user's cursor (mouse pointer)? Well, this simple API call will do the trick! See what you can do with it, and please vote!

API Declarations
Public Declare Function ShowCursor Lib "user32" Alias "ShowCursor" (ByVal bShow As Long) As Long

Rate Invisible Mouse

Option Explicit
'This is the API function that will hide the cursor
Public Declare Function ShowCursor Lib "user32" Alias "ShowCursor" (ByVal bShow As Long) As Long
Private Sub Form_Load()
  'Hide the cursor when the program starts
  ShowCursor 0
End Sub
Private Sub Form_Unload()
  'Show the cursor when it ends
  ShowCursor 1
End Sub

Download this snippet    Add to My Saved Code

Invisible Mouse Comments

No comments have been posted about Invisible Mouse. Why not be the first to post a comment about Invisible Mouse.

Post your comment

Subject:
Message:
0/1000 characters