Vb 2016 validating event


15-Jun-2020 04:05

It allows you to specify required characters, optional characters, literal characters, such as hyphens and parentheses, currency characters, and date separators.The control also works well when bound to a data source.A is a string made up of characters from a masking language that specifies which characters can be entered at any given position in the text box. If the user types an incorrect entry, for example, the user types a letter when a digit is required, the control will automatically reject the input.The masking language that is used by Masked Text Box is very flexible.This approach is useful when you want to give the user immediate feedback about the data as they are working.

Each control that accepts free-form user input has a Validating event that will occur whenever the control requires data validation.When users enter data into your application, you may want to verify that the data is valid before your application uses it.