all groups > dotnet windows forms designtime > november 2005 >
You're in the

dotnet windows forms designtime

group:

Intercepting closing DropDown of a ComboBox


Re: Intercepting closing DropDown of a ComboBox Herfried K. Wagner [MVP]
11/16/2005 12:00:00 AM
dotnet windows forms designtime: "Carlo" <carlodevREMOVE@gmail.com> schrieb:
[quoted text, click to view]

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/>
Re: Intercepting closing DropDown of a ComboBox Carlo
11/16/2005 12:00:00 AM
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)
carlodevREMOVE@gmail.com


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> ha scritto nel
messaggio news:uBxTU5p6FHA.632@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Intercepting closing DropDown of a ComboBox Carlo
11/16/2005 11:32:10 AM
Good morning

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?

Thank you very much.

Carlo




-------------------------------------------
Carlo, MCP (Windows Based Applications)
carlodevREMOVE@gmail.com


AddThis Social Bookmark Button