Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi geeks,

I browsed many websites but I couldn't get exact references.
I got an ImageButton which displays an image. When I mouseover it, the image should be transparent and need to display 2 buttons "Update" and "Delete" like facebook. When I mouseout, the present image should get back from trasparent to opaque.

How this is possible??
Posted
Comments
Have you tried anything yet?

Your button is derived from Control like everything you see on any Windows Form. Therefore you can use the MouseEnter (not "over") and MouseLeave events to accomplish your task.

On Enter, change image, create and display buttons, attach event handlers.
On Leave, change image back, destroy buttons.

If you need several of those special image buttons with buttons on them, make it a separate class with the mentioned event handlers overridden.
 
Share this answer
 
You can do this using CSS techniques.

Demo


[Demo] Show Buttons over Image on Hover[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900