load事件中加上一句
this.textBox1.Text="";

解决方案 »

  1.   

    把控件放入窗体时
    在其属性中将Text设为空
    或自己这样重写:
    this.textBox1 = new System.Windows.Forms.TextBox();
    this.textBox1.Location = new System.Drawing.Point(88, 128);
    this.textBox1.Name = "textBox1";
    this.textBox1.Size = new System.Drawing.Size(192, 21);
    this.textBox1.TabIndex = 0;
      

  2.   

    我将其删除后,但新增加一个控件后,其语句又出现了,
    BinaryTreeEx(狂徒(完全抵制日货)) :其实没什么,我只是想要它用其类里面的可变值,不想固定死.