-
I don't know if I am going about this the correct way but…
I am using an API call to hide the mouse cursor but it only works over the windows of your program. I want to make it work everywhere. My thoughts are that this could be done by maximising the form but making it invicible. One problem, I don't know how to do this. :confused:
Are they any other methods that could be use?
Thanks
-
Try the ShowCursor function.
Code:
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Sub Form_Load()
ShowCursor False
End Sub
Private Sub Form_Unload(Cancel As Integer)
ShowCursor True
End Sub
-
That is what I am already using. It works everywhere when run through Visual Basic but only works over the windows of your program when it is run from the compiled code.
-
Oh...invisible ;) Thought you meant invincible...interesting prospect though...I'll have a look :p
-
What about setting Scree.MousePointer = 99, then set the MouseIcon to a null or blank cursor?
-
When compiled that only works over your programs windows.:(