本帖最后由 xiaopei711 于 2009-12-06 12:18:47 编辑

解决方案 »

  1.   

    Abort方法本来就会在目标线程上引发ThreadAbortException这个异常应该是由.net捕捉处理的,你安装的另一台电脑按装了.NET Framework没有?
      

  2.   

    this.A();
    this.B();void A(){
      //有耗时事件,这里隐藏主窗口
      this.Visible=false;
      //打开等待窗口
       this.wf=new WaitForm();
      this.wf.show();
      //wait handle
      // ...
    }
    //...
    void B(){
      this.Visible=true;
      this.wf.Dispose();
    }
    //class WaitForm{
      ProgressBar pb=new ProgressBar();
      //构造函数布局省略
      protected override void OnLoad(object sender,EventArgs e)
      {
         pb.Style=ProgressBarStyle.Marquee
      }
    }