///说明一下:textBox1,2,3及label1都是我要清空的控件,我写的不对,所以都注释了,请帮帮我,我刚学的.
private void clear_Click(object sender, EventArgs e)
{
//textBox1.Text.Remove(0,textBox1.Text.ToString().Length);
//textBox2.Text.Remove(0, textBox2.Text.ToString().Length);
//textBox3.Text.Remove(0, textBox3.Text.ToString().Length);
//label1.Text.Remove(0, label1.Text.ToString().Length); }
{
textBox1.Text = ""
}
{
textBox1.Text = "";
textBox1.Text = "";
textBox1.Text = "";
label1.Text = "";
}
private void clear_Click(object sender, EventArgs e)
{
textBox1.Text="";
textBox2.Text="";
textBox3.Text="";
label1.Text=""; }