private delegate void DelOutput(string str);
/// <summary>
/// 向text中写入文本
/// </summary>
/// <param name="str"></param>
public void output(string str)
{
if (this.InvokeRequired)
{
DelOutput output = new DelOutput(this.output);
this.Invoke(output, new object[] { str });
}
else
{
this.textBox1.Text += str + Environment.NewLine;
}
}
posted on 2010-12-08 21:02
Victor.Stone 阅读(694)
评论(0) 编辑 收藏 引用 所属分类:
.net framework