Hi,i'm making a game with vb6.0.Once the application is opened,the cursor must become invisible.does anyone know how to do this?
Making the cursor invisible
Collapse
X
-
Yess!!!!!!!! I need to see the code at home. I thin it was like this
Dim A as Cursor
a.visible = False
Never mind . . I will send you about 5 hours OK??
VxE -
Hey man. I use this one. It's easy and only 2 lines of code and actually works:
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Declare that function in your general area. Then, use this to show/hide in the form or button code:
Hide cursor - ShowCursor 0
Show cursor - ShowCursor 1 (or any non-zero value)
It's really that easy. If it doesn't work let me know.Comment
-
One thing to keep in mind with this function. I remember this from when I used it many years ago, so it may not apply any more. But here goes anyway.
It's important to always show again after hiding. Windows keeps count of the number of times the mousepointer has been hidden, and the number of times "unhidden". And it shows the pointer or not depending on whether the latter is equal to or higher than the former. So if you let the two counts get out of synch, the pointer may not come back until you restart Windows.Comment
Comment