private void progressDisplayTask() { try { this.Invoke(new MethodInvoker(delegate() { progressBar.Visible = true; })); } catch (Exception) { } }