更改按钮的文字颜色
问题描述:
大家好,我该如何更改按钮的文本颜色而不创建新的按钮.如何将任何statix文本的背景设置为transperent.请帮助我..
Hi all,how can i change the text color of a button without creating a new calss for button.and how we can set the background of any statix text as transperent.please help me..
答
尝试一下...
Try this...
Button2.ForeColor = System.Drawing.Color.Red;
颜色按钮 [使用Button属性,ForeColor:
Button1.ForeColor = Drawing.Color.BlueUse Button property, ForeColor:
Button1.ForeColor=Drawing.Color.Blue