Hi,
Is it possible to only validate a combobox if it's value is changed? I'm looking for something similar to the .modified property of the textbox countrol.
The problem I have is the combobox validating event run's every time you tab through the control regardless of whether the underlying value has changed. This is really causing me some problems.
I can't use SelectedValueChenged or SelectedIndexChanged because they do not trigger when the user enters a value that is not in the underlying combobox dataset. Due to some weird business issues, the users must be able to free entry into the combo box.
Can anyone help me with this.
Is it possible to only validate a combobox if it's value is changed? I'm looking for something similar to the .modified property of the textbox countrol.
VB.NET:
Private Sub txtCheckNumber_Validating(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles txtCheckNumber.Validating
'only run validation if the check number is changed.
If txtCheckNumber.Modified = True Then
ValidateData()
End If
End Sub
The problem I have is the combobox validating event run's every time you tab through the control regardless of whether the underlying value has changed. This is really causing me some problems.
I can't use SelectedValueChenged or SelectedIndexChanged because they do not trigger when the user enters a value that is not in the underlying combobox dataset. Due to some weird business issues, the users must be able to free entry into the combo box.
Can anyone help me with this.