المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Display image on Hover on a button in a winform



C# Programming
05-05-2009, 02:11 AM
I have a image button in a winform. On mouse hover i would like to change the image of the button. When the focus is lost i would like to show the original image .
I am handling the mouse_hover and mouse_leave events and changing the value of image property to the image i need. My images are stored in the resource file.
Is this the right way to do it?

Please let me know..