report progress backgroundworker from different class c#

前端 未结 3 1233
星月不相逢
星月不相逢 2020-12-05 11:29

In my .NET C# project I have used a \"BackgroundWorker\" to call a method in a different class. The following is the source-code of my main form

public parti         


        
3条回答
  •  悲&欢浪女
    2020-12-05 12:24

    Am i missing this in the above code ?:

    backgroundWorker1 = new BackgroundWorker();

    backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);

提交回复
热议问题