Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends, I have small need of help, How can I make mouse hover effect for buttons in Windows Desktop Application using vb.net code? Is this is possible and can't we apply css or some other designs to make it more look better.

Thanks
Ganesh
Posted

1 solution

No, CSS Required

Windows Application Controls Provides lots of events

Create Two event of your control
1. Mouse enter
2. Mouse Leave

Now, For example in mouse enter event
VB
YourControl.BackColor = Color.Green

in Mouse Leave event
VB
YourControl.BackColor = Color.Transperent

Happy Coding!
:)
 
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