namespace WindowsFormsApplication8
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{ while (true)
{ if (textBox1.Text == "hh")
{
MessageBox.Show("对了");
break;
}
} }
}
}
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{ while (true)
{ if (textBox1.Text == "hh")
{
MessageBox.Show("对了");
break;
}
} }
}
}
为什么不用Timer或者TextChanged事件?