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 开发者_StackOverflowmouse 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!
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.
精彩评论