Changing cursor when over command button

  • Thread starter Thread starter red6000
  • Start date Start date
R

red6000

I'm sure this must be easy, but I can't find an answer...

Is it possible to change the cursor from the default arrow to a hand when
you hover over a command button?

Thanks.
 
red6000 said:
I'm sure this must be easy, but I can't find an answer...

Is it possible to change the cursor from the default arrow to a hand when
you hover over a command button?

Thanks.

Red,

Here is a link to the API Module that you will need to change the
cursor to a Hand:

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

You will want to create a Module in your database and paste the code
from the above link in the module. This way all of your database
objects will be able to use the functions.

Once you have done that, you will want to go to the properties of the
command button, Events tab, and hit the three ellipses next to the
MouseMove Event (...). Choose the Code Builder. This will take you to
the Visual Basic Editor. If the Sub you just created, paste this code:

Call MouseCursor(IDC_HAND)

Good luck!
 
Brilliant, many thanks.

KML said:
Red,

Here is a link to the API Module that you will need to change the
cursor to a Hand:

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

You will want to create a Module in your database and paste the code
from the above link in the module. This way all of your database
objects will be able to use the functions.

Once you have done that, you will want to go to the properties of the
command button, Events tab, and hit the three ellipses next to the
MouseMove Event (...). Choose the Code Builder. This will take you to
the Visual Basic Editor. If the Sub you just created, paste this code:

Call MouseCursor(IDC_HAND)

Good luck!
 
KML said:
Red,

Here is a link to the API Module that you will need to change the
cursor to a Hand:

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

You will want to create a Module in your database and paste the code
from the above link in the module. This way all of your database
objects will be able to use the functions.

Once you have done that, you will want to go to the properties of the
command button, Events tab, and hit the three ellipses next to the
MouseMove Event (...). Choose the Code Builder. This will take you
to the Visual Basic Editor. If the Sub you just created, paste this
code:

Call MouseCursor(IDC_HAND)

Good luck!

Or you could just set the HyperlinkSubAddress property of the button to " ".
 

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