raven
raven

Reputation: 18135

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

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?

Upvotes: 1

Views: 1801

Answers (2)

Elmer
Elmer

Reputation: 9437

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

Upvotes: 1

Beth
Beth

Reputation: 9607

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

Upvotes: 0

Related Questions