private void Logout_Click(object sender, EventArgs e)
        {
            string       msg    = "Are you sure you want to logout?";
            DialogResult result = MessageBox.Show(msg, "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                FormLogIn login = new FormLogIn();
                login.Show();
                this.Hide();
            }
            else
            {
            }
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            this.ProgressBar1.Value += 20;

            if (this.ProgressBar1.Value >= 100)
            {
                this.ProgressBar1.Value = 0;
                this.timer1.Stop();

                FormLogIn login = new FormLogIn();
                login.Show();
                this.timer1.Stop();
                this.Hide();
            }
            else if (this.ProgressBar1.Value <= 100)
            {
                string path = "C:\\Users\\chysa\\OneDrive\\" + i + ".jpg";
                this.pictureBox1.Image = Image.FromFile(path);
                //this.timer1.Stop();

                i++;
            }
        }