NewB to the forum, so if I posted this in the wrong place please let me know.
Does anyone know of a best method for dealing with large numbers of controls on a form?
I have a user interface form that will be driven by a TreeView control. The various nodes need to call up one of about 9 different "pages" full of controls to display and allow manipulation of values. Each of these "pages" holds enough controls to pretty much fill the remaining available form real estate. I would love to throw a tab control on the form and each page of controls could reside on a tab so that I could layout and maintain each without have to move controls from another page out of the way. However it is not desirable during runtime to have the tabs displaying.
Suggestions?
Thanks,
B
Loading
Master BillaPosted Sep 13, 2009, 9:47 AM
You can do like this way, keep a common panel control in your main form, then create user controls. then when you are click the a tree node load the user control within the central panel.
http://www.codeproject.com/KB/tree/SimpleDrvExplorer.aspx
thank you
Danatas GerviPosted Sep 13, 2009, 5:29 AM
panel1 - for TreeView, panel2 -
for UserControl with all controls, needed for selected node.
UserControl can be added dynamicaly, on runtime, when node had been selected,
by Activator.CreateInstanse(..) method (see Reflection)
Jayhawks RockPosted Sep 11, 2009, 5:18 PM
Any other ideas?
Anyone?
Roei BarPosted Sep 11, 2009, 5:08 PM