1、窗体加载的时候

Control.CheckForIllegalCrossThreadCalls = false;

2、多线程使用

 Thread t = new Thread(new ThreadStart(delegate {
        load_file(openFileDialog.FileNames);
 }));
 t.Start();