ComboBox Events

stevecking

Active member
Joined
Dec 27, 2006
Messages
32
Programming Experience
5-10
I've been trying to determine the value of a combobox after the user has changed the selection without much success. Using the SelectedValueCommitted and using msgbox to display the value it shows the value of the combobox prior to the user changing the value. I need to update values of other controls based on the selection of the item from the collection for the combobox, but it always fails. I would think this would be a crutial event. I don't want it to fire when the form is opened and/or data bound which is what the SelectedValueChanged does. Any assistance would be appreciated.
 
Is this your code in SelectionChangeCommitted event handler?
VB.NET:
MsgBox(ComboBox1.GetItemText(ComboBox1.SelectedItem))
This displays in messagebox the displayed text of selected item after a user have changed selection when I run it.
 
Back
Top