我是C#新手,在C# windows窗体中执行繁重的任务时,我需要显示一个繁忙的加载器。这是到目前为止已经尝试过的方法,它显示了这个错误 {"Cross-thread operation not valid: Control 'dataGridView1' accessed from a这是我的代码 //window form//this form is getting called by menu button
我想抛出这个错误,改为说,“你这个笨蛋,进入应用程序设置并指定一个有效的路径”。") MessageBox.Show("Hey you idiot, go into the application settings and specify a validpath","Error"); else MessageBox.Show(ex.Message,"Erro