private void btnContinue_Click(object sender, EventArgs e) { if (tbPassword.Text.Equals("ccu123")) { RefreshResetForm rrForm = new RefreshResetForm(); rrForm.StartPosition = FormStartPosition.CenterParent; rrForm.ShowDialog(this); this.Dispose(); } else { MessageBox.Show("Wrong password!", "Wrong password", MessageBoxButtons.OK); tbPassword.Text = ""; } }