Getting the user selection from a ComboBox

  • Thread starter Thread starter Tsviatko Yovtchev
  • Start date Start date
T

Tsviatko Yovtchev

How to do it? The SelectedIndexChanged event i useless because the user
might just be moving the selection in the dropped down listbox using the
navigation buttons without actually selecting anything.

In the .NET framework there is the SelectionChangeCommitted event but
apparently it has been removed from the CF. What is the mechanism to
replace it?
 
Given a ComboBox c you could e.g. access c.Items[c.SelectedIndex] or
c.SelectedItem in a handler added to c.LostFocus or if the parent Form
is closed.
 
tamberg said:
Given a ComboBox c you could e.g. access c.Items[c.SelectedIndex] or
c.SelectedItem in a handler added to c.LostFocus or if the parent Form
is closed.
But the Combobox does not lose focus when the user performs a selection.
 
There might be no mechanism replacing exactly what you get by using
SelectionChangeCommitted.
 
Back
Top