How do I hide the mousepointer?


    If you want to hide the mousepointer completely, use the Windows API ShowCursor. Declare it as:

    16-bit
    Declare Function ShowCursor Lib "User" (ByVal bShow As Integer) As Integer

    32-bit
    Declare Function ShowCursor Lib "user32" Alias "ShowCursor" (ByVal bShow As Long) As Long


    To hide the mousepointer, use:
       result = ShowCursor(False)
    
    To show it again, use:
       result = ShowCursor(True)
    

Mail to Daniel Wiman <daniel@wimania.com>
Online since June 1996, updated 971025
<- The VB home
<- Daniels homepage