Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are u sure ?", "Logout", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                this.Hide();
                Loginform loginform = new Loginform();
                loginform.ShowDialog();
            }
        }
Beispiel #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     count--;
     if (count == 0)
     {
         timer1.Enabled = false;
         this.Hide();
         Loginform loginform = new Loginform();
         loginform.ShowDialog();
         this.Close();
     }
 }