The .NET CF ComboBox doesn't have a DropDown event, so what's the alternative?

旧街凉风 提交于 2019-12-24 07:04:23

问题


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?


回答1:


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...




回答2:


Why would you need to know when they dropped down the combo box? Usually you just need to know if they changed the value. Private Sub ComboBox1_SelectedValueChanged



来源:https://stackoverflow.com/questions/1105504/the-net-cf-combobox-doesnt-have-a-dropdown-event-so-whats-the-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!