How to change buttons's picture On Mouse over button?

C

Catalin

I'm trying to write a procedure and I want to change to small image attached
to this button, when I pass with my mouse over the button."
Thanks
 
M

Martin

Use the MouseMove event and the Picture property:

If btn.Picture="path to image 1" Then
btn.Picture="path to image 2" (or btn.Picture="" if you want it to go blank)
Else
btn.Picture="path to image 1"
EndIf
 

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

Top