急求 “System.Windows.Forms.TextBox”并不包含“text”的定义

public int mode = 0;
public string name ="";

private void button1_Click(object sender, EventArgs e)
{

if (radioButton1.Checked == true)
{
mode = 1;
name = textBox1.text;
}
if (radioButton2.Checked == true)
{
mode =2;
name = textBox1.text;
}
if (radioButton3.Checked == true)
{
mode = 3;
name = textBox1.text;
}
this.Close();
}

第1个回答  2012-03-12
textBox1.text --> textBox1.Text //注意大小写本回答被提问者采纳
相似回答