private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (MessageBox.Show("Do you want to Logout ?", "Loguot Window", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { this.Hide(); slogin sl = new slogin(); sl.Show(); } }
private void timer1_Tick(object sender, EventArgs e) { z += 1; if (z >= 100) { this.Hide(); timer1.Enabled = false; slogin sl = new slogin(); sl.Show(); } progressBar1.Value = z; }