Hi
For a while now I have been finding postings of problems with the
validating event not firing on controls properly. I too had this
problem. The event would fire when clicking on another control which
had it's causes validation property set to true however if I tabbed on
to this control the event wouldn't fire. So after playing around with
my code I figured out how to get it to work. I am not sure what the
reason behind it is but it works.
I was originally using a method to handle multiple validating events
for the sake of less coding and to utilise one of the features in .NET
eg
Private Sub cmbCombo_Validating(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles cmbPlanner.Validating,
cmbPlannerPOLine.Validating, Handles cmbManufacturer.Validating,
cmbManufacturerPoline.Validating
This event would not fire when I tabbed of it for some reason. I then
changed the code to handle each individual event and viola! e.g.
Private Sub cmbPlanner_Validating(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles cmbPlanner.Validating
Private Sub cmbPlannerPOLine_Validating(ByVal sender As Object, ByVal
e As System.ComponentModel.CancelEventArgs) Handles
cmbPlannerPOLine.Validating
Private Sub cmbManufacturer_Validating(ByVal sender As Object, ByVal e
As System.ComponentModel.CancelEventArgs) Handles
cmbManufacturer.Validating
You get the Picture.... I am pretty sure this works ;)