Rollover images


John Clarke
If I add an image to a frame or a view how can I make it so that the image changes when the user moves the mouse over it ?

decsoft

Hello John,

We can use the MouseEnter and MouseLeave events of the Image control.

Supose we set an "a.png" to the Image's Url property, then, in the MouseEnter event, we can write something like this:

... so we are changing the Image's Url to "b.png", and, in the MouseLeave event we can back to the original image:


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.