private void signOutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do You Want To LogOut", "LogOut", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         frmAdminLogin obj = new frmAdminLogin();
         obj.Show();
         this.Dispose();
     }
     else
     {
     }
 }
 private void frmMDIParent_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (MessageBox.Show("Do You Want to Exit?", "Exit", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         frmAdminLogin obj = new frmAdminLogin();
         obj.Show();
         this.Dispose();
     }
     else
     {
         e.Cancel = true;
     }
 }
        void timer1_Tick(object sender, EventArgs e)
        {
            int i = 0;

            for (i = 0; i <= 100; i++)
            {
                progressBar1.Value = i;
            }
            timer1.Enabled = false;
            frmAdminLogin obj = new frmAdminLogin();

            this.Visible = false;
            obj.Show();
        }
        private void frmMDIParent_Load(object sender, EventArgs e)
        {
            frmAdminLogin obj = new frmAdminLogin();

            obj.Dispose();
        }