private void button1_Click(object sender, System.EventArgs e) { Thread thr = new Thread(new ThreadStart(this.ShowProgressWindow)); thr.Start(); } private void ShowProgressWindow() { Form15 frm15 = new Form15(); frm15.Show(); }
private void button1_Click(object sender, System.EventArgs e) { Thread thr = new Thread(new ThreadStart(this.ShowProgressWindow)); thr.Start(); for (int i = 0; i <= 50000; i++) { this.Text = i.ToString(); } this.Close(); } private void ShowProgressWindow() { Form15 frm15 = new Form15(); frm15.Show(); }
private void button1_Click(object sender, System.EventArgs e) { Thread thr = new Thread(new ThreadStart(this.ShowProgressWindow)); thr.Start(); } private void ShowProgressWindow() { Form15 frm15 = new Form15(); frm15.ShowDialog(); }