Click here to Skip to main content
15,909,373 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i am using bootstrap to implement my project.

in my application i created one button that i am using "btn-primary" css class but when user click the button the button background color is changed.i am using this code

Button10.BackColor = Color.Red;

but here when mouse hover that time color will come.


please share any idea to me.
Posted
Comments
karthik Udhayakumar 10-Feb-14 1:14am    
"but here when mouse hover that time color will come" what this means .Do you want the colour to be changed OnMouseover or Buttonclick else both.Can you explain? to guide you
krish2013 10-Feb-14 2:24am    
Hii Uday,
i want to button click background color will change

1 solution

You need to handle onclick Event[^] and onmouseover Event[^] for that Button.

Assign your required Background Color on these Events.
 
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