Change the mouse cursor when roll over

ubeyou

New member
Local time
Today, 05:28
Joined
Aug 17, 2008
Messages
8
Actually this question i asked in From section. http://www.access-programmers.co.uk/forums/showthread.php?t=155228
thanks buddy, Now i have another problem, I have an image button, how can i change the mouse cursor when i rollover it and make the image size bigger a bit? Thanks for the guidance.
http://www.access-programmers.co.uk/forums/editpost.php?do=editpost&p=741169

So how to change the mouse cursor picture using VBA? because when you mouse over an image in form, the mouse cursor won't change. Thanks for the guidance.
 
Code:
Private Sub Button1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Screen.MousePointer = 11 'or 0,1,3,7,9
Me.TimerInterval = 500
End Sub
Private Sub Form_Timer()
Screen.MousePointer = 0
Me.TimerInterval = 0
End Sub

is it this what you need?
 
thanks but i found another more useful
Private Sub Image0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim lHandle As Long

lHandle = LoadCursor(0, HandCursor)

If (lHandle > 0) Then SetCursor lHandle

End Sub
 

Users who are viewing this thread

Back
Top Bottom