views:

410

answers:

2

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?

A: 

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

Beth
There are many time when it is very handy to know when the ComboBox has just dropped, before anything is selected. This is especially helpful for making visible changes to the UI at the appropriate time, particularly with respect to visibility of controls and usability of the interface.
Stewbob
+1  A: 

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

Elmer