public frm_ProgressBar() { InitializeComponent(); ctrl_text = new DChangeControlText(ChangeUser_Text); cl_frm = new DCloseForm(Close_Form); grfx = this.CreateGraphics(); dt = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond); }
public frm_ProgressList() { try { InitializeComponent(); ctrl_text = new DChangeControlText(ChangeUser_Text); cl_frm = new DCloseForm(Close_Form); //grfx = this.CreateGraphics(); progressBar1.Value = progressBar1.Maximum; lbl_percentage.Text = "99%"; dt = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond); Control.CheckForIllegalCrossThreadCalls = false; } catch (ThreadAbortException ex) { } catch (Exception ex1) { } //catch (Exception ex) { } }