Search Tools Links Login

Invisible Mouse


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!

Original Author: Mike Gerwitz (Clodaus Teraton)

API Declarations

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

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

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 78 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.