急求 “System.Windows.Forms.TextBox”并不包含“text”的定义
publicintmode=0;publicstringname="";privatevoidbutton1_Click(objectsender,EventArgse)...
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();
} 展开
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个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询