I’m trying to create a listbox with categories and another listbox for items in each category. I want to be able to select a category in the first listbox and then the second listbox will change to display the items for that particular category. Its very common and I’m sure you can understand what I mean here. I was looking around for it but couldn’t get any idea how to do this. I’ve created 2 listboxes for the moment and the values I want in it, thats it. any help?
Share
I created a winform with two list boxes listbox1 and listbox2 and this is what my Form1.cs looks like
and here is the InitializeComponent() code