读书人

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

发布时间: 2012-03-30 17:32:09 作者: rapoo

==怎么把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;

读书人网 >C#

热点推荐