Beispiel #1
0
        //进度窗体
        private void pictureBox3_LoadProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            Form3 Form3 = new Form3();
            progressBar1.Value = e.ProgressPercentage;
            label1.Text = e.ProgressPercentage.ToString() + "%";
            Form3.Close();

            //    int maximum=100, value=0;
            //    this.progressBar1.Maximum = maximum;//设置进度条最大值
            //    this.progressBar1.Value = value;//设置进度条当前值

            progressBar1.Maximum = 100;
            progressBar1.Minimum = 0;
            for (int i = 0; i <= 100; i++)
            {
                progressBar1.Value = i;
            }
            progressBar1.Visible = false;
            //Form3.Close();//关闭窗体
        }
Beispiel #2
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     progressBar1.Show();
     Form3 Form3 = new Form3();
     //Form3.Show();
 }