|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SelectionChangeCommitted eventWhy 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 -- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "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? 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 > Its a solution. I try not to worry about it if it works. No time in a
production environment to worry about such things. -- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "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 >>
hierachical related data in datatset
VB2005 Pro Edition--Data Sources window is disabled when viewing forms Binding to an enumeration Multithreading Problem web reference to system.web.dll Traversing a Collection evaluate or transform or ??? Accessing one dimension of a multidimensional array Desperately needing direction with EncoderParameters and saving images under different compression/q Maximum Form Height? |
|||||||||||||||||||||||