What's the best way to use ListView and GroupBoxes as Options window?

What's the best way to use a ListView and a collection of GroupBoxes as a preferences window?

For example, a Listview will have items like General, Sounds, Labels, and there will be three group groups defining the same things.

What would be the best programmatic way to navigate through them each time you select an item in the list?

Hide all group groups and then show group package based on the index of the selected list? Or does anyone have an idea to deal with something similar?

+1


source to share


3 answers


I don't know if there is a better way, but in the past what you described is the general approach I have taken.



-1


source


I may have underestimated your question, but perhaps a TreeView would be more appropriate for your problem? This will allow you to have top-level category nodes (such as General, Sounds, etc.) and then lists of items under each node.



+2


source


You can use TabControl if there are not many categories in the settings. This way all hide / show mechanisms will be handled by it.

+1


source







All Articles