Getting the user selection from a ComboBox

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?
 
T

tamberg

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

Tsviatko Yovtchev

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

tamberg

There might be no mechanism replacing exactly what you get by using
SelectionChangeCommitted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top