日期:2014-05-18 浏览次数:20769 次
public delegate void MyDelegate(object sender, EventArgs e); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MyDelegate dele = new MyDelegate(aa); dele.BeginInvoke(sender, e, null, null); } public void aa(object sender, EventArgs e) { Thread.Sleep(10000); MessageBox.Show("123"); }
------解决方案--------------------
4#正解。