Cursor over control

  • Thread starter Thread starter Ig
  • Start date Start date
I

Ig

How to make mouse cursor change for example to hand when moving over
control?
 
Ig said:
How to make mouse cursor change for example to hand when moving over
control?

Copy and paste the code from

http://www.mvps.org/access/api/api0044.htm

into a standard module. Then either create an event procedure for the
control's MouseMove event like this:

'----- start of example code -----
Private Sub YourControl_MouseMove( _
Button As Integer, _
Shift As Integer, _
X As Single, _
Y As Single)

MouseCursor IDC_HAND

End Sub

'----- end of example code -----

or just set its OnMouseMove event property to

=MouseCursor(32649)

You can pick other pointer shapes, too.
 
Thanks, Dirk

Dirk Goldgar said:
Copy and paste the code from

http://www.mvps.org/access/api/api0044.htm

into a standard module. Then either create an event procedure for the
control's MouseMove event like this:

'----- start of example code -----
Private Sub YourControl_MouseMove( _
Button As Integer, _
Shift As Integer, _
X As Single, _
Y As Single)

MouseCursor IDC_HAND

End Sub

'----- end of example code -----

or just set its OnMouseMove event property to

=MouseCursor(32649)

You can pick other pointer shapes, too.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top