README.md

December 4, 2022 ยท View on GitHub

Invisible Mouse

Description

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!

More Info

Submitted On
ByMike Gerwitz
LevelBeginner
User Rating5.0 (10 globes from 2 users)
CompatibilityVB 6.0
CategoryMiscellaneous
WorldVisual Basic
Archive File

API Declarations

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

Source Code

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