winform窗口不弹出问题
请高手指点:
当我往 Form1_Load加入一下代码时,winform则不弹出,去掉则弹出winform窗口
private void Form1_Load(object sender, EventArgs e) //加载函数
{
System.Threading.Thread.Sleep(10000);
int n = 1;
while (n != 0)
{
n++;
if (n == 5)
{
//button1.Text = DateTime.Now.ToString("T");
button1_Click(sender, e);
System.Threading.Thread.Sleep(10000);
n = 1;
}
}
}
------解决方案--------------------
没死机??没蓝屏??
好神奇