private void InitDialog_DoWork(object sender, DoWorkEventArgs e) { // Very dirty way to do this. :/ _sForm = new StartupForm(); _sForm.Show(); while (!_bInit) { //meh? Thread.Sleep(500); _sForm.Update(); } _sForm.Hide(); _sForm = null; }
private void InitDialog_DoWork(object sender, DoWorkEventArgs e) { // Very dirty way to do this. :/ sForm = new StartupForm(); sForm.Show(); while(!b_Init) { //meh? Thread.Sleep(500); if(b_SelfUpdating) sForm.label1.Text = "Updating..."; sForm.Update(); } sForm.Hide(); sForm = null; }