首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

==如何把button的字体设置成粗体,多谢。==

2012-03-30 
怎么把button的字体设置成粗体,谢谢。bandButton.BackColorColor.FromArgb(209,236,255)bandButton.F

==怎么把button的字体设置成粗体,谢谢。==
bandButton.BackColor   =   Color.FromArgb(209,236,255);
                        bandButton.ForeColor   =   Color.FromArgb(20,43,124);


如果设置成粗体应该怎么设置呢?必须在代码里设置。谢谢。

[解决办法]
设置 font.
[解决办法]
button2.Font.Bold = true;
[解决办法]
try

bandButton.Font = new Font(bandButton.Font.FontFamily, bandButton.Font.Size, FontStyle.Bold);

[解决办法]
this.button1.Font = new System.Drawing.Font( "MS UI Gothic ", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
经过测试证明可用!
[解决办法]
搞错了,呵呵, this.button2.Font.Blod=true 不行,呵呵,只读的

Font nes = new Font( " ", 12, FontStyle.Bold);
this.button1.Font = nes;

热点排行