private void btnpsw_Click(object sender, EventArgs e) { if (txtboxPsw.Text.Equals("1")) { //switch to Form Menu FormMenu dialog = new FormMenu(); dialog.ShowDialog(); txtboxPsw.Clear(); } }