日期:2014-05-18 浏览次数:20943 次
private void button1_Click(object sender, EventArgs e)
{
for ( int i=0;i<3;i++)
{
Thread th = new Thread(delegate() { Test(i.ToString()); });
Thread.Sleep(1000);
th.Start();
}
}
void Test(string hwnd)
{
do
{
MessageBox.Show(hwnd);
} while (true);
}