0

I´m trying to detect when a combobox in my Windows Mobile application is hit by a mouse click. Unfortunately this component in .NET CF2.0 doesn´t have a MouseClick event (whereas Desktop .NET does). Does someone have an idea of how to catch mouse/stylus clicks over the items list of a combobox using C#?

Thank you!

Tigran
  • 61,654
  • 8
  • 86
  • 123
LucasBr
  • 461
  • 1
  • 7
  • 19
  • see this one: http://stackoverflow.com/questions/1105504/the-net-cf-combobox-doesnt-have-a-dropdown-event-so-whats-the-alternative – Davide Piras Aug 29 '11 at 19:43
  • Hi Davide. Thanks for your idea, but it will not help me to differ whereas the input comes from mouse or from hotkeys. – LucasBr Aug 31 '11 at 11:42

1 Answers1

0

You should be able to use the MouseDown/MouseUp events to get the same behavior as MouseClick. You will just have to make sure the object is the same is both cases and store some state between events.

AdamC
  • 16,087
  • 8
  • 51
  • 67
  • I´m very grateful for your idea, but these events doesn´t occur in Combobox component in Compact Framework either. Could I have another idea? – LucasBr Aug 31 '11 at 11:39