Victor.Stone
dot net 备忘录
posts - 21,  comments - 25,  trackbacks - 0


        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 阅读(698) 评论(0)  编辑 收藏 引用 所属分类: .net framework
只有注册用户登录后才能发表评论。

<2012年1月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(2)

随笔分类(17)

文章分类

搜索

  •  

积分与排名

  • 积分 - 24268
  • 排名 - 193

最新随笔

阅读排行榜