Hello Herfried,
thank you for your help.
The problem is that I don't have a parent window available (do you means
parent form?) because I'm working on a control that inherits from
System.Windows.Forms.ComboBox.
I checked all messages raised by WndProc of my ComboBox, but I've seen any
WM_COMMAND.
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications)
ca************@gmail.com
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> ha scritto nel
messaggio news:uB*************@TK2MSFTNGP10.phx.gbl...
"Carlo" <ca************@gmail.com> schrieb: I've not found an event that notify me when drop-down part of a BomboBox
is closed. OnDropDown just notify when the drop-down is displayed, not
when it is closed.
Is there a message in WndProc that can be used to intercept a drop-down
closing?
Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s
high-order word is 'CBN_CLOSEUP'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>