Subject: combobox dropdown style.
Posted By: ochanarachel Post Date: 10/11/2004 4:01:29 PM
hello.
General description:
I have windows application in vs 2003.
i have a win form that contains 4 combobox with DropDown style :
the user can choose an item by clicking (mouse),or by typing a value (keyboard).
when the user types a value - i need to set values to the other comboboxs.

My problem :
when the user selects value by clicking , i'm using the "SelectionChangeCommitted" event to set values to the other combobox
BUT
when the user types values - i can't find the  event to set value to the other combobox.
I tried to use the "Leave" event but sometimes the SelectedValue is empty (and it also depends if user types when the list is opened or closed ).
My Question:
Please help : which event should i use to ask about the SelectedVaue so i can set values to the other comboboxs?

Thanks in advance.



Reply By: pradeep_itguy Reply Date: 10/12/2004 12:02:16 AM
Use "SelectedIndexChanged" changed event. This can be useful when you need to display information in other controls based on the current selection in the ComboBox.

Go here for more information

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsComboBoxClassSelectedIndexChangedTopic.asp



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa

Go to topic 20520

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738