I’m making a todo list program using windows forms for one of my university assignments. I’ve learnt how to add and delete items form a list box, so i understand the basic of it but what i want to do is to be able to add a task to a list box like : “get food for dinner,” and add that to the listbox but then i want to be able to click on “get food for dinner” and then add another listbox to add stuff like “bread rolls” and “bacon” in the next view which would be linked to the previous item.
Like a tree view structure really, but i wanted it more menu orientated.
How would i go about to do this, what should i look up?
Side note: feel free to correct my title if it poorly describes what i’m doing, i thought it was better then “using Listbox”
Description
ToString()method.If a user clicks on a item you can grab the selected item, cast them to your class and use the properties to do something.
Sample
Add a Todo-List Entry
Do something after a user clicks on a item
Screenshot