Heres what im trying to do.
I have hundreds of settings in my application, and i want a settings editor for my form.
Theres going to be about 30 categories of settings and i think i know how to go about it.
Option 1#
Have a treeview with each category. Then create 30 group boxes (one for each category) and show the correct group box based on what the user has selected in the treeview.
I do not like this way because it requires a huge select case statement which i have to maintain, and having to constantly shift group boxes around in order to add/edit settings is a pain in the ass especially since i have to be careful not to drag a group box into another one.
Option 2#
Similar to #1, except i create a usercontrol with a treeview, and it will dynamically create and show group boxes based on what category you choose. I figure this would be great because in the designer for my main app, i could place this usercontrol on my form and in design mode i would create all the categories in the treeview and when i click on a treeview item it will show the corresponding group box. This makes it easy to access my settings group boxes at design time and add/edit controls in them.
I have the usercontrol, i have a Categories property which is of type TreeNodeCollection. I can add all my categories but my problem is, in the designer, i cant click on the treeview notes - it just selects my entire usercontrol. How do i enable it so that in the designer, i can use the treeview as if it were in run mode?
Any other suggestions would be much appreciated.
I have hundreds of settings in my application, and i want a settings editor for my form.
Theres going to be about 30 categories of settings and i think i know how to go about it.
Option 1#
Have a treeview with each category. Then create 30 group boxes (one for each category) and show the correct group box based on what the user has selected in the treeview.
I do not like this way because it requires a huge select case statement which i have to maintain, and having to constantly shift group boxes around in order to add/edit settings is a pain in the ass especially since i have to be careful not to drag a group box into another one.
Option 2#
Similar to #1, except i create a usercontrol with a treeview, and it will dynamically create and show group boxes based on what category you choose. I figure this would be great because in the designer for my main app, i could place this usercontrol on my form and in design mode i would create all the categories in the treeview and when i click on a treeview item it will show the corresponding group box. This makes it easy to access my settings group boxes at design time and add/edit controls in them.
I have the usercontrol, i have a Categories property which is of type TreeNodeCollection. I can add all my categories but my problem is, in the designer, i cant click on the treeview notes - it just selects my entire usercontrol. How do i enable it so that in the designer, i can use the treeview as if it were in run mode?
Any other suggestions would be much appreciated.