Tried
If (textBox1.Text.Length < 5 && textBox2.Text.Length < 5 && textBox3.Text.Length < 5)
{
return false;
}
else
{
return true;
}
It only finds the textBox1 validation but not the other two.
Tried
If (textBox1.Text.Length < 5 && textBox2.Text.Length < 5 && textBox3.Text.Length < 5)
{
return false;
}
else
{
return true;
}
It only finds the textBox1 validation but not the other two.
Try to change the AND operators with OR:
If (textBox1.Text.Length < 5 || textBox2.Text.Length < 5 || textBox3.Text.Length < 5)
return false;
else
return true;
It should work now.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.