Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleHide and show the mouse pointer
Keywordshide mouse pointer, show mouse pointer, ShowCursor
CategoriesTips and Tricks, API
 
Use the ShowCursor API function.

To turn the mouse back on after you have hidden it using this program, press Tab to move to the Show Cursor button and then press Space.

Be sure to restore the cursor when you are finished or you'll make life miserable for the user.

 
Private Sub cmdHideCursor_Click()
    ShowCursor False
End Sub

Private Sub cmdShowCursor_Click()
    ShowCursor True
End Sub

Private Sub Form_Unload(Cancel As Integer)
    ShowCursor True
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated