//窗口類中:普通類成員函數(shù) private int recv1(int num) { //string strInfo = Convert.ToString(num); //label1.Text = strInfo; System.Threading.Thread.Sleep(1000); return num; } private void button1_Click(object sender, EventArgs e) { Calcul cal = recv1;//定義委托對象 IAsyncResult re = cal.BeginInvoke(20, null, null);//執(zhí)行 int rt1 = cal.EndInvoke(re);//阻塞等待結(jié)果 label1.Text = rt1.ToString(); } //聲明委托 public delegate int Calcul(int num);