//Messagebox button...

        private void btnOKp3_Click(object sender, EventArgs e)
        {
            Close();
            SignedIn nextform = new SignedIn();

            nextform.Show();
        }
示例#2
0
        //Password changed...

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            if (a == 1)
            {
                if (textBox2.Text == "12")
                {
                    SignedIn nextform = new SignedIn();
                    nextform.Show();
                    Close();
                }
                else
                {
                }
            }
            else
            {
                if (textBox2.Text == "12")
                {
                    a = 1;
                }
                else
                {
                }
            }
        }