日期:2014-05-18  浏览次数:21113 次

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