private void btnCancel_Click(object sender, EventArgs e) { Form_Postingan f2 = new Form_Postingan(); this.Visible = false; f2.Show(); }
private void linkLogout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { DialogResult dialogResult = MessageBox.Show("Anda yakin akan Logout?", "", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { this.Dispose(); Form_Postingan fp = new Form_Postingan(); fp.Show(); } else if (dialogResult == DialogResult.No) { this.Show(); } }