摘要:
//按钮启动第二个窗口 private void button1_Click(object sender, EventArgs e) { //另起一个线程启动第二个窗口 new Thread(showF2).Start(); this.Close(); } //启动第二个窗口的方法 void showF2() { Form2 f2 = new Form2(); //这句很重要,不能用f2... 阅读全文
摘要:
View Code 1 private void Form1_Load(object sender, EventArgs e) 2 { 3 new Thread(copyFileAndProgressBar).Start(); 4 progressBar1.Value = 0; 5 timer1.Interval = 2000; 6 timer1.Start(); 7 } 8 9 private void timer1_Tick(o... 阅读全文