Ejemplo n.º 1
0
        private void SSNBox_Leave(object sender, EventArgs e)
        {
            if (SSNBox.Text.Length < 12 || SSNBox.Text.Contains(" "))
            {
                SSNwarningLabel.Show();
            }

            else
            {
                SSNwarningLabel.Hide();
            }
        }
Ejemplo n.º 2
0
        private void CancelButton_Click(object sender, EventArgs e)
        {
            NameBox.Text      = "";
            SurnameBox.Text   = "";
            FullNameShow.Text = "";
            FullNameShow.Hide();
            PasswordBox.Text       = "";
            RepeatPasswordBox.Text = "";
            BirthdayPicker.Value.ToLocalTime();
            SSNBox.Text   = "";
            EmailBox.Text = "";
            CodeBox.Text  = "";

            NamewarningLabel.Hide();
            SurnamewarningLabel.Hide();
            BirthdaywarningLabel.Hide();
            PassWarningLabel.Hide();
            PassRepeatWarningLabel.Hide();
            SSNwarningLabel.Hide();
            EmailWarningLabel.Hide();

            NameBox.Focus();
        }