Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            mainpage ob = new mainpage();

            this.Hide();
            ob.Show();
        }
Exemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         mainpage ob = new mainpage();
         this.Hide();
         ob.Show();
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            progressBar1.Increment(1);
            String s = Convert.ToString(progressBar1.Value);

            label4.Text = s + "%";
            if (progressBar1.Value >= 100)
            {
                timer1.Stop();
                mainpage ob = new mainpage();
                this.Hide();
                ob.Show();
            }
        }