4

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

Suggestions?

max
  • 33,369
  • 7
  • 73
  • 84
Bohn
  • 26,091
  • 61
  • 167
  • 254

2 Answers2

2

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().

max
  • 33,369
  • 7
  • 73
  • 84
  • ok, tried it: well I am using FarpointSpread sheet and using a comboBox cell type inside one of its cells... it does not have DropDown but it does have ComboDropDown event which I had tried it before... if I click on the editor area, it fires...if i click on the button it does not fire in my app... – Bohn Jan 04 '11 at 22:23
  • @max There is no ComboDropDown or DropDown event. The only event I found is : DropDownClosed. There is no DropDownOpened event. – user2102327 May 08 '21 at 14:02
1

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?

Carlos Valenzuela
  • 816
  • 1
  • 7
  • 19