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?
Printable View
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?
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.
thanks
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, 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.
In that case, use the Screen object.
Code:Screen.MousePointer = 2
Excellent work, but how would you manage this in vb3 16bit?
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.