SelectionChangeCommited

  • Thread starter Thread starter Jon Berry
  • Start date Start date
J

Jon Berry

This is a weird one.

My comboBox is set to receive the SelectionChangeCommited event.

When I use "combobox.SelectedText" it's returning the previous value, not
the selected one.

What's up with that?
 
Because you really want the SelectedItem property, not the SelectedText
property. The latter relates to what's specifically displayed and
selected in the edit area, whereas the former is related to the _actual_
selection in the list area (which is what's changing in the event you're
handling).

Pete

Yes, SelectedItem works. Seems a little odd though but I can live with it.

How do you know so much? :-)
 
Back
Top