private void button2_Click(object sender, EventArgs e) { start st = new start(); this.Hide(); st.ShowDialog(); }
private void button7_Click(object sender, EventArgs e) { sql = "INSERT INTO tbhistory(timeanddate,activity,username)VALUES(now(),'Logout', 'Admin')"; sql_cmd = new MySqlCommand(sql, clsMySQL.sql_con); sql_cmd.ExecuteNonQuery(); start st = new start(); this.Hide(); st.ShowDialog(); }