急,在线等候,多谢!

解决方案 »

  1.   

    Button test = new Button();
                test.Size = new Size(20, 20);
                test.Visible = true;
                test.Text = "test";
                test.Location = new Point(0, 0);
                this.Controls.Add(test);
                this.Invalidate();
      

  2.   

    Button btn = new Button();
    btn.Text = "新加的按钮";
    this.Controls.Add(btn);
      

  3.   

    Button aa = new Button();
    aa.Name = "aaa";
    aa.Text = "aaa";
    aa.Size = new Size(20, 40);
    aa.Location = new Point(20, 20);
    this.Controls.Add(aa);
    this.Invalidate();
    aa.Click += new System.EventHandler(this.aaclickevent);然后再写个aaclickevent事件就可以了
      

  4.   

    Button btn= new Button();
    btn.Name = "aaa";
    btn.Text = "aaa";
    btn.Size = new System.Drawing.Size(20, 40);
    btn.Location = new System.Drawing.Point(20, 20);
    this.Controls.Add(btn);
      

  5.   

    你要把你的按钮加在某个可以看见的panel或者其他容器中
    比如this.panel.Controls.add(button1);