SSITControls.WaitForm.WaitForm Wait; //等待窗体 private void ExecuteQuery() { Wait = new SSITControls.WaitForm.WaitForm(); ExecuteThread(); // Wait.ExecuteEvent = ExecuteThread; Wait.AllowCancel = true; Wait.AllowProcess = false; Wait.AllowTimer = false; Wait.AutoMessage = true; // Wait.Execute(); }