private void lOGOUTToolStripMenuItem_Click(object sender, EventArgs e) { this.IsMdiContainer = true; LOGIN f = new LOGIN(); f.MdiParent = this; f.Show(); }
private void timer1_Tick(object sender, EventArgs e) { do { progressBar1.Value += 2000; lbl += (float)2.0; label2.Text = lbl + "% "; if (progressBar1.Value == 100000) { label2.Text = "100"; this.Hide(); LOGIN frm = new LOGIN(); frm.Show(); timer1.Stop(); } }while (progressBar1.Value < 10000); }