Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to check input in multiple text boxes?

I am making a rain calculator in vb.net, that finds the total and average rainfall for twelve months. I have twelve text boxes that need validating. I tried if then statements but the error message would show up twelve times. So how would I validate text in all the text boxes at once?

1 Answer

Relevance
  • 9 years ago
    Favorite Answer

    Why don't you use the built in validator objects? They check all of the fields, and if any are invalid you get a message telling you which ones.

Still have questions? Get your answers by asking now.