|
-
Sep 14th, 2001, 10:29 AM
#1
Thread Starter
Frenzied Member
mousepointer
This is probably a really easy thing but my mind is somwhere else at the moment!
I want the mousepointer to be invisible over a picturebox...
please help
-
Sep 14th, 2001, 10:38 AM
#2
PowerPoster
Something like this:
VB Code:
Private Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
ShowCursor True
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
ShowCursor False
End Sub
It's not especially reliable like that though, so you may want to look at the TrackMouseEvent API to detect when the cursor moves off the control. See this for more info on that http://www.vbforums.com/showthread.p...267#post513734
Last edited by chrisjk; Sep 14th, 2001 at 10:42 AM.
-
Sep 14th, 2001, 10:42 AM
#3
Lively Member
hmmm
maybe create an invisible cursor file then
set the picture box mouseicon property to the cursor file
-
Sep 14th, 2001, 10:43 AM
#4
Thread Starter
Frenzied Member
-
Sep 14th, 2001, 10:49 AM
#5
Thread Starter
Frenzied Member
damn!
i think ill stick to the invisible cursor file thing...
the other thing made the mousepointer invisible in VB!!!
hehe! ill just restart it and maybe its ok then...
its strange that i cant choose that in the properties...
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
|