Combobox validating event c
Also I can't leave the application when a not valid text is present, that works, but how to trigger that event on my conditions above?Regards, You will probably need to store the initial value somewhere (like maybe in the Control's universal Tag field).I found another workaround though, which is to use the Drop Down Closed event in stead. Only if you actually open up the drop down list and select a value the Drop Down Closed event is fired. Update I've even tried overriding property Selected Index in My Combo Box, having it call .After typing a character and pressing Alt Down, the setter is executed, but it's setting the value to -1, which it already is.The appropriate Drop Down property value here is Drop Down List. Coming up with a workaround for your specific problem with the Drop Down style set to Drop Down is quite difficult.It allows the user type arbitrary text and even a perfect match with one of the dropdown items doesn't change the Selected Index.Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
I've tried several google searches in order to find a definitive answer on this but didn't find one before.Alternatively, you can handle the Selected Index Changed, but note that this event occurs whether the index is changed programmatically or by the user.For more information about handling events, see Handling and Raising Events.this is called after the selection is made, the menu is collapsed but the item is not compleetly changed. Not so short I have a Win Form application with a Combo Box on it.