Base Combo BoxOn Validating Method
This is overridden to fire the NotInList event before the normal validation method so
that you have a chance to take action on entered text that does not appear in the item list.
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected override void OnValidating(
CancelEventArgs e
)VB
Protected Overrides Sub OnValidating (
e As CancelEventArgs
)C++
protected:
virtual void OnValidating(
CancelEventArgs^ e
) overrideF#
abstract OnValidating :
e : CancelEventArgs -> unit
override OnValidating :
e : CancelEventArgs -> unit Parameters
- e CancelEventArgs
- The event arguments
Remarks
If the text is found, the SelectedIndex property is set to match the entry
containing the text. If it is not found, the NotInList event is raised so that you
can control what happens.