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