日期:2014-05-18 浏览次数:21055 次
/// <summary> /// 有多参数的 /// </summary> private void allpara(object para) { if (para != null) { string sResult = ""; List<string> list = (List<string>)para; foreach (string l in list) { sResult += l + "\n"; } MessageBox.Show(sResult,"提示",MessageBoxButtons.OK); } } //有多参数的 多线程 private void button4_Click(object sender, EventArgs e) { ParameterizedThreadStart ts = new ParameterizedThreadStart(allpara); Thread t = new Thread(ts); t.IsBackground = true; t.Start(new List<string>() { "刘得华","胡紧掏","辣没子"}); }
------解决方案--------------------