更改按钮的文字颜色 [英] Changing text color of a button

查看:77
本文介绍了更改按钮的文字颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我该如何更改按钮的文本颜色而不创建新的按钮.如何将任何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.Blue
Use Button property, ForeColor:

Button1.ForeColor=Drawing.Color.Blue


这篇关于更改按钮的文字颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆