示例#1
0
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmccount cc = new frmccount();

            cc.Show();
            this.Hide();
        }
示例#2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Start();
            progressBar1.Increment(1);
            progressBar1.Show();
            label1.Text = progressBar1.Value.ToString() + "%  completed";



            if (progressBar1.Value == progressBar1.Maximum)
            {
                timer1.Stop();
                frmccount account = new frmccount();
                account.Show();
                this.Hide();
            }
        }