As you can see in my code below, I am looking to only figure out how to tell whether there has been more than 2 integers into the HouseholdNoTextBox.
private void btnContinue1_Click(object sender, RoutedEventArgs e)
{
if (string.IsNullOrEmpty(HouseholdNoTextBox.Text))
{
textBlockError1.Visibility = Visibility.Visible;
}
if (//HouseholdNoTextBox.Text has > than 2 integers input)
{
textBlockError1.Visibility = Visibility.Collapsed; // collapse the first error box if it is visible
textBlockError2.Visibility = Visibility.Visible; // and make visible the second
}
}
Try this