AutoCompleteComboBoxOnLeave Method

This is overridden to ensure that the selected item is chosen if the control is left while the drop-down is shown.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
protected override void OnLeave(
	EventArgs e
)

Parameters

e  EventArgs
The event arguments

Remarks

There is an odd problem that happens every so often where if the drop-down is displayed, you type letters to use auto-completion to select an entry, and then tab out, it doesn't save the selected item. If this event is fired while the drop-down is shown, it saves the item selected, hides the drop-down, and restores the chosen item.

See Also