Home All Groups Group Topic Archive Search About

SelectionChangeCommitted event

Author
1 May 2006 2:24 PM
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?

Author
1 May 2006 3:18 PM
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

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quoteHide quote
"SH" <sham***@prupipe.com> wrote in message
news:_So5g.122$F4.102@newsread1.news.pas.earthlink.net...
> 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?
Author
1 May 2006 5:38 PM
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?

vbnetdev wrote:
Show quoteHide quote
> 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
>
Author
1 May 2006 6:03 PM
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.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quoteHide quote
"sh" <sham***@prupipe.com> wrote in message
news:6Ir5g.5774$An2.1124@newsread2.news.pas.earthlink.net...
> 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?
>
> vbnetdev wrote:
>> 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
>>