private void btnKembali_Click(object sender, EventArgs e) { FormUtama fu = new FormUtama(); fu.Show(); this.Hide(); }
private void btnHalamanUtama_Click(object sender, EventArgs e) { string peringatan = "Apakah kamu yakin ingin kembali ke Form Utama???"; DialogResult dr = MessageBox.Show(peringatan, "Konfirmasi Keluar", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (dr == DialogResult.Yes) { FormUtama fu = new FormUtama(); fu.Show(); this.Hide(); } }