SelectionChangeCommitted event

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

vbnetdev

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
 
S

sh

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

vbnetdev

Its a solution. I try not to worry about it if it works. No time in a
production environment to worry about such things.
 

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