private void iHex_ProgressEvent(double completed) { try { Progressbar.Value = (int) (completed*100); Application.DoEvents(); } catch { } }