I agree with the general approach, but I'd be careful about just putting this code in the parent's method (because it's going to be firing a lot when it doesn't need to). You might put an invisible shape that is slightly larger than the button behind the button and put the code in _that_ control's mouse move event instead.
>>I want to change picture1 on a command button with picture2 when the mouse cursor is on that button.I have placed code in the mouse move event to change the picture1 to picture2 but when the mouse cursor moves away from the command button the second picture remains.How do I bring back the first picture on the command button?
>
>Try the opposite approach in the parents mousemove event.
>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement