Label[] a = new Lable[90];for(int i=0;i<=89;i++)
    a[i] = new Label();

解决方案 »

  1.   

    Label[] a = new Lable[90];for(int i=0;i<=89;i++)
        a[i] = new Label();
    this.Controls.Add(a);
      

  2.   

    注意location属性的控制,以正确显示label
      

  3.   

    Label[] a = new Lable[90];for(int i=0;i<=89;i++)
        a[i] = new Label();
    this.Controls.Add(a);
    运行错误:>>其他信息:未将对象引用设置到对象的实例。
      

  4.   

    Label[] a = new Lable[90];for(int i=0;i<=89;i++)
    {    a[i] = new Label();
         a[i].Location= new Point(x,y); /// 设置好位置
         // 最好也设一下 Size
         a[i].Test = "Label" + i.ToString();
         this.Controls.Add(a[i]);
    }//当然是这样添加啦
      

  5.   

    Label[] a = new Lable[90];for(int i=0;i<=89;i++)
        a[i] = new Label();
    //this.Controls.Add(a); 出错应该是 Label[] a = new Lable[90];for(int i=0;i<=89;i++)
    {
        a[i] = new Label();
        this.Controls.Add(a[i]); 
    }吧