コード例 #1
0
        private void btn_back_Click(object sender, EventArgs e)
        {
            View_Result fm = new View_Result();

            this.Visible = false;
            fm.ShowDialog();
            this.Visible = true;
            this.Close();
        }
コード例 #2
0
        private void btn_Login_Click(object sender, EventArgs e)
        {
            View_Result fm = new View_Result();

            if (this.txt_username.Text == "admin" && this.txt_password.Text == "123")
            {
                fm.Show();
            }
            else
            {
                MessageBox.Show("Password is wrong!!!");
            }
        }