Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

[RESOLVED] Problem validating all TextBox controls on a form in the "Save" button in VB 2010

$
0
0
After much research and trying, I can't find a simple way to validate all of my Textboxes on a form with 20 Textboxes.

I turn an Errorprovider ON in each of the Validate events for each textbox if there is an error, but when I click the save button without first moving to another control, the Table is updated with any invalid data and the Errorprovider is left ON.

What simple code (Loop) can I use in my Save Button to not update the Table if any field has an error?

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>