且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按钮背景颜色变化问题

更新时间:2023-09-28 16:12:40

您需要处理 onclick事件 [ ^ ]和onmouseover Event [ ^ ]用于按钮



为这些事件分配所需的背景颜色。TE>

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.

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

Assign your required Background Color on these Events.