Hi everybody,
I am trying to do a button with three different status (normal, hover and pressed) in my web project but I don’t want the simple standard button. I have three pictures from the same arrow image (in gray, blue and red color).
The name to gray image is: Arrowimage_gray
The name to red image is: Arrowimage_red
The name to blue image is: Arrowimage_blue
By default I have inserted ‘Arrowimage_gray’ as an image well (called ‘ArrowButton’) and then I have included this code into the ‘Gotfocus’ event:
ArrowButton.Picture = Arrowimage_blue
and into the ‘MouseDown’ event:
ArrowButton.Picture = Arrowimage_red
When I put the mouse over the Arrowbutton I don’t get any change in the image and when I click it, the color changes to red but it’s static, it means, I want that it changes only the time that the button is pressed and after recover the gray color. Where is the problem? Is this the best way to get different status in a picture?
Could anyone help me to get different status in my button?
Thank you very much,
Sergio