|
-
Apr 16th, 2001, 02:08 PM
#1
Thread Starter
Hyperactive Member
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.
Are they any other methods that could be use?
Thanks
-
Apr 16th, 2001, 02:57 PM
#2
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
-
Apr 16th, 2001, 03:00 PM
#3
Thread Starter
Hyperactive Member
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.
-
Apr 16th, 2001, 03:02 PM
#4
Monday Morning Lunatic
Oh...invisible Thought you meant invincible...interesting prospect though...I'll have a look
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 16th, 2001, 03:08 PM
#5
What about setting Scree.MousePointer = 99, then set the MouseIcon to a null or blank cursor?
-
Apr 16th, 2001, 03:13 PM
#6
Thread Starter
Hyperactive Member
When compiled that only works over your programs windows.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|