validation - VB6 + VB.NET lostFocus vs Validate? -


i'm sure question can apply both, although i'm working vb6 code, why use lost focus vs validate? example, need date entered in text box date of birth, want make sure date entered in mm/dd/yyyy format, why choose go validate vs lost focus?

lost focus fires when user moves focus control one. validated event fires @ point of validation. more info on validation here: winform ui validation

note should use datetimepicker date entry; way not have worry amount format entered it's value property date


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -