//在Win Form中调用用户控件
  protected delegate void ProcessDelegate(object par);  this.downHistoryDataProgress1.Invoke(new ProcessDelegate((object obj) =>
   {
          this.downHistoryDataProgress1.Value = this.downHistoryDataProgress1.Value + 1; //TargetParameterCountException 出现此异常,是什么原因?
   }));//用户控件
 public partial class DownHistoryDataProgress : UserControl
    {
        public DownHistoryDataProgress()
        {
            InitializeComponent();
        }        public int Value
        {
            get
            {
                return this.progressBar1.Value;
            }
            set
            {
                this.progressBar1.Value = value;
            }
        }
    }

解决方案 »

  1.   

    //在Win Form中调用用户控件
      protected delegate void ProcessDelegate(object par);  this.downHistoryDataProgress1.Invoke(new ProcessDelegate((object obj) =>
      {
      this.downHistoryDataProgress1.Value = this.downHistoryDataProgress1.Value + 1; //TargetParameterCountException 出现此异常,是什么原因?
      }));你的DownHistoryDataProgress 并没有实现一个object参数的方法!
      

  2.   

     this.downHistoryDataProgress1.Invoke(new ProcessDelegate((object obj) =>
     {
                        object o1 = obj;
                        this.downHistoryDataProgress1.Value = this.downHistoryDataProgress1.Value + 1;
     }));修改成这样还是一样的问题