Combobox validating event c

Doing so can cause your application or the operating system to stop responding.

For more information, see the WM_KILLFOCUS topic in the "Keyboard Input Reference" section, and the "Message Deadlocks" section of the "About Messages and Message Queues" topic in the MSDN library at

event is raised only when the user changes the combo box selection, and you can create a handler for this event to provide special handling for the Combo Box when the user changes the selected item in the list.

However, depending on how the Combo Box is configured, and how the user changes the selected item, the event may not be raised.

The value stored in the control should not change when the control gains or loses focus.Just now I found a thread that actually refers to a Microsoft knowledge base article about the problem. The knowledge base article suggest to create your own combobox and override the Process Dialog Key method.I've tried it, but unfortunately, it doesn't seem to have any effect. I would expect a workaround described in a knowledge base article to be accurate. When you set the Drop Down Style to Drop Down List, typing a character does not fire the Drop Down Closed (as there is no actual drop down in that case).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).

Leave a Reply