Any specific event for clicking on the Button of the combobox

5.1k Views Asked by At

C# WinApps: is there any separate event that can tell us user has clicked on the small drop button next to the combobox?

Suggestions?

2

There are 2 best solutions below

2
On BEST ANSWER

Well, ComboDropDown event should work. As written in docs:

This event is raised by the OnComboDropDown method when the user clicks the drop-down arrow or presses the Alt+down arrow keys in a combo box cell ...

If it doesn't work for you, it seems like a bug.

Possible workaround:

Handle CellClick event and check coordinates from GetCellRect().

1
On

Not that event exactly, but, how about the click event, then you can check out the mouse position and check if it's in the little button area, perhaps?