public void ShowProgress( int progress ) { progressBar.Value = progress; CenterToParent(); Application.DoEvents(); }