LucasBr
LucasBr

Reputation: 481

Detecting mouse/stylus clicks with C# on a combobox in .NET CF

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!

Upvotes: 0

Views: 448

Answers (1)

AdamC
AdamC

Reputation: 16273

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.

Upvotes: 0

Related Questions