Mouse Pointer

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

How do I change the mouse pointer when over my control? I have tried
MousePointer = 7 in the mouse move event. Not working... I must be missing
something
 
Jeff said:
How do I change the mouse pointer when over my control? I have tried
MousePointer = 7 in the mouse move event. Not working... I must be
missing something

Did you use

Screen.MousePointer = 7

? It works for me.
 
Hi Yoda,

I was actually going to tag onto this thread and ask you if it was possible to change the mouse
pointer to a "hand" when over an unattached label. But I thought I should try Googling first. Second
thread I read I found this from 2002:
Copy the code from

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

into a standard module. Then put the statement

MouseCursor IDC_HAND

in the event procedure for the control's MouseMove event, or just set
its OnMouseMove property to this expression:

=MouseCursor(32649)

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

(please reply to the newsgroup)

So anyway, just wanted to say thanks and it works great!
:-)
 
Jeff Conrad said:
Hi Yoda,

I was actually going to tag onto this thread and ask you if it was
possible to change the mouse pointer to a "hand" when over an
unattached label. But I thought I should try Googling first. Second
thread I read I found this from 2002:
[...]

So anyway, just wanted to say thanks and it works great!

Any time I can be helpful without actually doing anything, I'm glad to
oblige, Jeff.
 
Henry said:
looks like access changes back the image back to arrow though ;-(

Sure, it does when you move the nouse back over some other control or
the form section's background. If that's not what you want, you have to
call MouseCursor in the other control or section as well.
 
Back
Top