|
-
Jan 19th, 2023, 03:10 AM
#1
Thread Starter
Junior Member
[RESOLVED] ComboBox Validating does not fire after selection+edit
I'm working on a Windows Forms (.Net Fx 2.0) application.
I've got a standard WinForms ComboBox control, which has a hardcoded list of items. The user should also be able to type custom values, which are not in the list.
I need an (or multiple) event that fires when the value of the ComboBox was changed and the user leaves the control.
Currently I handle the SelectedValueChanged for the selection of a predefined item from the list. I also handle the Validating event for custom text typed into the ComboBox.
The above works if the user only selects from the list or only types a custom value.
However, if the user first selects a value from the list (SelectedValueChanged fires) and then edits the selected value without leaving the control, the Validating event is not fired when the user leaves the control.
Is there any event that fires in that situation?
Do I need to set a property of the ComboBox to make the Validating event fire?
Last edited by sonic8; Jan 19th, 2023 at 03:29 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|