Results 1 to 3 of 3

Thread: Making the mouse icon invisible!

  1. #1

    Thread Starter
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Use the ShowCursor API.
    Code:
    Option Explicit
    
    
    Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
    
    
    Private Sub HideCursor(Optional ByVal bHidden As Boolean = True)
        Call ShowCursor(Not bHidden)
    End Sub
    Usage:
    To hide the cursor, use:
    Call HideCursor
    Or:
    Call HideCursor(True)
    To show the cursor, use:
    Call HideCursor(False)

    Note: If you hide the cursor "twice" or more, you will to show it "twice" or more until it appears, and vice versa.

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    I would like to know how to make the mouse Icon invisible like on some games.

    Thanks

  3. #3
    Guest

    Post

    Yeah, that's the clever people's answer, now for my way of doing it...!

    Create a blank cursor (Microangelo is good at doing this) and assign it to the form's MouseIcon property, then set the form's MouseCursor property to 99 - Custom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width