private void button2_Click(object sender, EventArgs e) { mainpage ob = new mainpage(); this.Hide(); ob.Show(); }
private void button4_Click(object sender, EventArgs e) { try { mainpage ob = new mainpage(); this.Hide(); ob.Show(); } catch (Exception ex) { } }
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(); } }