更改按钮颜色 [英] Change the Button color
本文介绍了更改按钮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在单击按钮时更改按钮的颜色,但我不知道该如何实现.
I want to change the button color when i click on it but i don''t know how i can realize this
推荐答案
也许这是给您的东西
具有颜色和形状的自定义按钮 [
Maybe this is something for you
Custom Button with Color and Shape[^]
Good luck!
一个简单的方法可能是:
在设计师上
1-将按钮的"FlatStyle"属性设置为"Flat"
2-然后操作"FlatAppearance"属性以设置按钮上的颜色(在鼠标按下和鼠标悬停时)
是自定义按钮颜色的最快方法
希望对您有帮助
祝你好运
a simpler way might be:
on the designer
1- set the button''s "FlatStyle" property to "Flat"
2- then manipulate the "FlatAppearance" properties to set the color on button (on mouse down and mouse over)
its the quickest way to customize the color of the button
hope that helps
good luck
这篇关于更改按钮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文