点点滴滴访问量:

 

delegate void SetTextCallback(string text);//建立一个委托用于控件显示
        private void AddText(string text)
        
{
            
if (this.richTextBox1.InvokeRequired)
            
{
                SetTextCallback d 
= new SetTextCallback(AddText);
                
this.Invoke(d, new object[] { text });
            }

            
else
            
{
                
this.richTextBox1.AppendText(text);
            }


        }
posted on 2007-06-08 15:34  sopper  阅读(933)  评论(4编辑  收藏  举报