|
-
Sep 23rd, 2000, 11:58 PM
#1
Thread Starter
Lively Member
how do i make it so when the mouse is over
a command button the mouse pointer changes,
and when its off the button it goes back
to default?
any ideas?
-
Sep 24th, 2000, 03:11 AM
#2
Frenzied Member
Set the button's MousePointer property to whatever cursor you want (at design time.) If you want a custom cursor, set the MousePointer property to 99 and the MouseIcon property to your custom .CUR file.
-
Sep 24th, 2000, 12:08 PM
#3
Thread Starter
Lively Member
-
Sep 24th, 2000, 12:58 PM
#4
Frenzied Member
That will not put the cursor back when you move the mouse away from the Button
In the parent of the CommandButton put:
Code:
'Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.MousePointer = 0
'End Sub
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 25th, 2000, 06:55 AM
#5
Frenzied Member
Jop, as long as the form's and surrounding controls' mouse pointer properties are different from the button's, the cursor WILL change. Try it at see.
-
Sep 25th, 2000, 03:19 PM
#6
In that case, use the Screen object.
Code:
Screen.MousePointer = 2
-
Oct 24th, 2000, 06:56 PM
#7
New Member
Excellent work, but how would you manage this in vb3 16bit?
-
Oct 26th, 2000, 06:05 PM
#8
Frenzied Member
Its all the same. VB hasn't changed a whole lot in that area for years. Just use the info above and it should work; if not, describe your situation and I'll see what I can do.
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
|