开发者

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

开发者 https://www.devze.com 2023-03-31 19:13 出处:网络
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

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

精彩评论

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

关注公众号