示例#1
0
        private void btn_sign_Click(object sender, EventArgs e)
        {
            Frm_sign sign = new Frm_sign(this);

            sign.Show();
            this.Hide();
        }
        private void btn_logined_Click(object sender, EventArgs e)
        {
            if (txt_name.Text != "" && txt_surname.Text != "" && txt_mail.Text != "" && txt_password.Text != "")
            {
                MessageBox.Show("You are succesfull register");

                Frm_sign sign = new Frm_sign(this.form1);
                sign.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Do not leave it blank");
            }
        }