.NET CF ComboBox没有DropDown事件,所以有什么替代方法? [英] The .NET CF ComboBox doesn't have a DropDown event, so what's the alternative?

查看:151
本文介绍了.NET CF ComboBox没有DropDown事件,所以有什么替代方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用.NET 3.5 SmartDevice项目,我真的可以使用ComboBox DropDown事件,但是.NET Compact Framework版本没有它。

I'm working on a .NET 3.5 SmartDevice project and I could really use the ComboBox DropDown event, but the .NET Compact Framework version doesn't have it. Is there another way to be made aware of when the list has dropped down?

推荐答案

我使用GotFocus事件来填充组合框。我保持一个布尔变量指定组合框被填充,所以它不会重新填充组合框每次它的焦点。它有点丑,但它工作...

I use the GotFocus event to populate the combobox. I keep a boolean variable specifying wether the combobox is populated so it doesn't repopulate the combobox everytime it get's focus. it's a bit ugly, but it works...

这篇关于.NET CF ComboBox没有DropDown事件,所以有什么替代方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆