日期:2014-05-17 浏览次数:20950 次
public delegate void PrintHandler(); //定义一个委托
private void btnPrint(object sender, EventArgs e)
{
//启动打印线程
new System.Threading.Thread(new System.Threading.ThreadStart(delegate
{
PrintHandler printHandler = new PrintHandler(Print);
this.BeginInvoke(printHandler);
})).Start();
}
private void Print()
{
//这里是你真正打印的代码
}