I'm lost on this one.
I'm creating a "Preferences" type form. On this form I have a tree view and a panel.
I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected.
The problem I am having is finding the best way to display the correct user control when a node is clicked. All I can seem to reference in the Panel.Controls collection is an index number and that is rather useless to me because I cant find a value in the tree view to correspond to it.
Is there a way to "bind" so to speak, a tree view node to a user control?
How would you go about doing something like this and keep it relatively easy to maintain and update?
Any suggestions are welcome.