Dynamically loading usercontrols

  • Thread starter Thread starter Showjumper
  • Start date Start date
S

Showjumper

How can i dynamically load usercontrols? I havea treeview control and
depening on which node is slected, load the right control. I dont see
LoadControl method as i do for asp.net pages.

Ashok
 
And i know they can be compiled and then added but i am going to have 20
some od controls.
 
Just create an instance of a control and add it to the Form's Contol
collection.
 
Look at the designer generated code for any form. It's all examples of what
you want to do.

-Chris
 
Back
Top