I have a regular form(not windows form) in Visual Studio using vb.net. I would like to validate the phone field once it looses focus, in the sense when the user tabs out of the field. How do I raise an event? The dropdown doesn't come with lostfocus event? Thanks. ~ Nita
相关问题
- Stop child process when parent process stops
- Fire resize event once not based on timing
- Date with SimpleDateFormat in Java
- RegEx Max and Min length characters for a Text Box
- C# CS0079 Event Handling Compile Errors
相关文章
- Angular Material Stepper causes mat-formfield to v
- What does it means in C# : using -= operator by ev
- Why doesn't Django enforce my unique_together
- How are custom broadcast events implemented in Jav
- Programming a touch screen application with SWING
- X/Html Validator in PHP
- Using CascadeMode.StopOnFirstFailure on a validato
- How many pixels are scrolled on a website with a m
Try to use the Control.Validating and Control.Validated events. Basically, the Validating event is designed for validation. If the phone # isn't valid, set e.Cancel = True, and the focus will stay on that field.
You can use the method below to validate phone number. Just pass a phone number argument into the method.
and in your code front