刚刚接触编程,C#也是不到1个月,我想问个简单问题,就是说,我想设置LABEL下字体的颜色,和大小,在代码中这么实现,不要在VS里设置,具体还不这么会用,希望得到大家的帮助,label1.ForeColor ,这个怎么写呢,属性,方法,每个控渐有好多,不知道都有什么用,顺便介绍一下什么方面的书能具体介绍常用的属性和方法么

解决方案 »

  1.   

    你查MSDN吧,要比在这里问学的快
      

  2.   

    label1.ForeColor =System.Drawing.color.Red;
      

  3.   

    设置颜色看代码
    怎么弄的自动
    this.label1.BackColor = System.Drawing.SystemColors.ControlText;
    this.label1.Font = new System.Drawing.Font("宋体", 5.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
    this.label1.ForeColor = System.Drawing.SystemColors.ActiveCaption;
    this.label1.Location = new System.Drawing.Point(216, 656);
    this.label1.Name = "label1";
    this.label1.Size = new System.Drawing.Size(280, 23);
    this.label1.TabIndex = 7;
    this.label1.Text = "label1";
      

  4.   

    你可以在vs里面设置
    然后到.cs文件中看他的代码
    你想动态的设置
    就按照他的代码写就行了