private void ucWB1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e) { if (e.MaximumProgress > 0 && e.CurrentProgress < e.MaximumProgress) { UserControls.ucWB wb = (UserControls.ucWB)sender; uiStatusBar1.Panels[1].ProgressBarValue = System.Convert.ToInt32(100 * e.CurrentProgress / e.MaximumProgress); if (e.CurrentProgress == e.MaximumProgress) { uiStatusBar1.Panels[1].ProgressBarValue = 0; } } }
private void ucWB1_StatusTextChanged(object sender, EventArgs e) { try { UserControls.ucWB wb = (UserControls.ucWB)sender; uiStatusBar1.Panels[0].Text = wb.WebBrowser.StatusText; } catch (Exception x) { // do nothing } }