Hide Mouse Pointer


Is there a simple way to hide the mouse pointer (not cursor) using VB6 while temporarily displaying a form?
Thanks,
Mike

If you enjoyed this post, subscribe for updates (it's free)

Hide Mouse

You can hide the mouse using the ShowCursor API call

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

Show mouse
ShowCursor (True)

Hide mouse
ShowCursor (False)

When the Form unloads always use ShowCursor (True) else you won't see the mouse again until you close VB.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.