Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to enable a list box from a combobox in C#?

Hello everybody. I'm new in C# and i have a question. What i want to do is to enable a listbox from a combobox. Let me give you an example so you can understand!!!

Lets say that the combobox has these values:1,2,3
I want when the user chooses the 2 a listbox to be enabled with information about 2. If he chooses the 1 a listbox to be enabled with information about 1.

Can somebody help me???

Thanks and merry Christmas!!!!!!!


  • BrutesBrutes Member Posts: 162

    Do you populate the listbox from a Database?
  • s_sreenaths_sreenath Member Posts: 20
    Use the Combobox's selectedindexchanged event. Read the value of the selected value and use that and then display or enable the listbox of you desire. If you are using in, kindly let me know i can post some sample code here.
    "Always Smile :)"
Sign In or Register to comment.