开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜