用多线程.
private void Form1_Load(object sender, EventArgs e)
{
System.Threading.Thread ta; System.Threading.Thread tb;
ta = new System.Threading.Thread(new System.Threading.ThreadStart(t1)); tb = new System.Threading.Thread(new System.Threading.ThreadStart(t2)); ta.Start();
tb.Start();
}private void t1()
{
MessageBox.Show("asd");
}
private void t2()
{
Thread.Sleep(100000);
}
private void Form1_Load(object sender, EventArgs e)
{
System.Threading.Thread ta; System.Threading.Thread tb;
ta = new System.Threading.Thread(new System.Threading.ThreadStart(t1)); tb = new System.Threading.Thread(new System.Threading.ThreadStart(t2)); ta.Start();
tb.Start();
}private void t1()
{
MessageBox.Show("asd");
}
private void t2()
{
Thread.Sleep(100000);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货