SelectionChangeCommitted event

  • Thread starter Thread starter SH
  • Start date Start date
S

SH

Why doesn't the SelectionChangeCommitted event fire when the user
chooses an item via the keyboard and then presses the return key or the
tab key?

I have a combobox with AutoCompleteSource=ListItems and
AutoCompleteMode=SuggestAppend. When the user makes a selection via the
mouse, the SelectionChangeCommitted event fires. Good. But when they
make a selection via the keyboard and press the return key or the tab
key to commit their choise, the SelectionChangeCommitted doesn't fire.
Why? Aren't they valid commitment methods?
 
AddHandler ColumnComboBox.SelectionChangeCommitted, AddressOf
ComboStartEditing

Next, build your procedure in an Overrides Region:

Private Sub ComboStartEditing(ByVal sender As Object, ByVal e As EventArgs)

blnStartEditing = True
MyBase.ColumnStartedEditing(sender)
...blah, blah, blah
End Sub
 
Thanks for your response.

But isn't that just getting around the problem. Am I wrong in assuming
that the return key and tab key SHOULD fire the SelectionChangeCommitted
event?
 
Its a solution. I try not to worry about it if it works. No time in a
production environment to worry about such things.
 
Back
Top