代码?
  
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 
http://feiyun0112.cnblogs.com/

解决方案 »

  1.   

    多线程调用控件
    InvokeDelegate 是void ControlMethod(object data)样子的委托void ControlMethod(object data)
    {
      if(Control.RequestInvoke)
       {
          InvokeDelegate id=new InvokeDelegate(ControlMethod);
          Control.Invoke(id,data);
       }
       else
       {
          //do what you do
       }
    }
      

  2.   

    做个界面使用listbox显示不就行了么,使用委托使界面运行可以随时拖动查看就可以了
    public delegate void ListBoxDelegate(string strTishi);
    private void ListBoxTishi(string strTishiXinxi)
            {
                if (this.lsbXinxiTishi.InvokeRequired)
                {
                    ListBoxDelegate LBDelegate = new ListBoxDelegate(ListBoxTishi);
                    this.lsbXinxiTishi.Invoke(LBDelegate, new object[] { strTishiXinxi });
                }
                else
                {
                    this.lsbXinxiTishi.Items.Add(strTishiXinxi);
                    this.lsbXinxiTishi.SelectedIndex = this.lsbXinxiTishi.Items.Count - 1;
                    this.Refresh();
                }        }
    调用时在线程方法调用就行了
    例如
    strXinxi = DateTime.Now.ToString() + " 第" + i.ToString() + "条信息发送成功";
                        ListBoxTishi(strXinxi);
                        strXinxi = String.Empty;