473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SelectionChangeCommitted event

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?
May 1 '06 #1
3 2866
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

"SH" <sh*****@prupipe.com> wrote in message
news:_S**************@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?

May 1 '06 #2
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:
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

May 1 '06 #3
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

"sh" <sh*****@prupipe.com> wrote in message
news:6I*****************@newsread2.news.pas.earthl ink.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

May 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy Read | last post by:
Hello all, I have the requirement to produce source code that produces an object hierarchy. Example: Root | Folder 1
18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
1
by: Supa Hoopsa | last post by:
I have a standard combo box in a datagrid (DataGridEnableComboBoxColumn) and I want to catch the SelectionChangeCommitted event. Does anyone know how to do this?
0
by: Shravan | last post by:
Hi, There is a bug in combobox selectionchangecommitted event firing, I took a combobox of style dropdownlist, I dropped down it using mouse and using Alt+Up Arrow key closed the dropdown,...
3
by: Cor | last post by:
Hi all, I think I do something wrong, but I don't see what. I have made a sample. The sample needs only a form with a combobox and this code. (I can tell you that it took a long time to see...
1
by: Kalvin | last post by:
I have a combobox, when I use the mouse and click an item, then the SelectionChangeCommitted event fires. However, if I use the arrow keys and move up or down the list to a new item, then this...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
9
by: jeff | last post by:
New VB user...developer... Situation...simplified... - I want to wrap a pre and post event around a system generated where the pre-event will always execute before the system event and the...
5
by: docw | last post by:
SelectionChangeCommitted event fires twice Hi, Please have a look at the following ComboBox behavior. With the code below, if you click in the dropdown list with the mouse to select an item ,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.