Exemplo n.º 1
0
        private void signoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmlogin obj = new frmlogin();

            obj.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            playUI_ProgressBar1.Increment(1);
            timer1.Start();

            if (playUI_ProgressBar1.Value == 20)
            {
                label2.Text = "Loading databases...";
            }
            if (playUI_ProgressBar1.Value == 40)
            {
                label2.Text = "Checking your server Connections...";
            }
            if (playUI_ProgressBar1.Value == 60)
            {
                label2.Text = "Ready";
            }

            if (playUI_ProgressBar1.Value == 80)
            {
                frmlogin log = new frmlogin();
                log.Show();
                this.Hide();
            }
        }
Exemplo n.º 3
0
        private void btnback_Click(object sender, EventArgs e)
        {
            frmlogin obj = new frmlogin();

            obj.Show();
            this.Hide();
        }
Exemplo n.º 4
0
 private void btnresetpass_Click(object sender, EventArgs e)
 {
     try
     {
         con.Open();
         MySqlDataAdapter sda = new MySqlDataAdapter("UPDATE user SET password='******' WHERE email='" + lblusername.Text + "'", con);
         sda.SelectCommand.ExecuteNonQuery();
         MessageBox.Show("Your have successfully changed your password...", "Password UPDATED", MessageBoxButtons.OK, MessageBoxIcon.Information);
         frmlogin obj = new frmlogin();
         obj.Show();
         this.Hide();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error occured while Updating the password!" + ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     finally
     {
         con.Close();
     }
 }