hello, actually I am a beginner learning Visual C# 2008 express edition .. and I have a question %26gt;
I want to make a very simple program which have a ComboBox and a ListBox
lets assume I have 2 folders of music on my computer
I wanna add like 2 items to the ComboBox ,lets say %26gt; album1 , album2
when the user click or choose album1 from the ComboBox list, then the files of album1 appear in the listBox for the user
or the user choose album2 from the comboBox then the files of album2 folder appear in the listBox
could you please show me how to do that?
Visual C# -- filling a ListBox from a ComboBox?
Add a handler to the SelectedIndexChanged event of a combo box. In that event handler check what index or item is selected in the combo box and then load the listbox with the corresponding items. If you need more assistance than that let me know.
Reply:Hello
I have the same problem like percious...
your answer is good described, but i would like to ask if you have a code for your solution. i tried to make it with my own code, but it don't work.
thank you Report It
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment