5

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
34.5k7 gold badges76 silver badges84 bronze badges
asked Jan 4, 2011 at 22:15

2 Answers 2

3

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

answered Jan 4, 2011 at 22:19
Sign up to request clarification or add additional context in comments.

2 Comments

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...
@max There is no ComboDropDown or DropDown event. The only event I found is : DropDownClosed. There is no DropDownOpened event.
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?

answered Jan 4, 2011 at 22:21

1 Comment

well how to check the position?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.