private void btnAdmin_Click(object sender, EventArgs e) { FormAdmin fa = new FormAdmin(); fa.Show(); this.Hide(); }
private void btnKembali_Click(object sender, EventArgs e) { string peringatan = "Apakah kamu yakin ingin kembali ke form admin???"; DialogResult dr = MessageBox.Show(peringatan, "Konfirmasi Kembali", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (dr == DialogResult.Yes) { FormAdmin fa = new FormAdmin(); fa.Show(); this.Hide(); } }