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

<2010年12月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(2)

随笔分类(17)

文章分类

搜索

  •  

积分与排名

  • 积分 - 23821
  • 排名 - 192

最新随笔

阅读排行榜