N
Nick Locke
Apologies if this is easy and I'm missing something!
I have a collection of User Controls (all inherited from the same root). I
have a form on which one of the controls is the user control ancestor (which
is great at design-time because I get all the Intellisense and so on).
However, at run time, I need to programatically "tell" the form to load in
one of the concrete User Controls (a different one each time), rather than
the ancestor.
So, effectively, I am looking for a piece of VB code which will allow me to
specify the Class Name of a control to load into a "placeholder" control.
How do I code that please?
Thanks,
Nick
I have a collection of User Controls (all inherited from the same root). I
have a form on which one of the controls is the user control ancestor (which
is great at design-time because I get all the Intellisense and so on).
However, at run time, I need to programatically "tell" the form to load in
one of the concrete User Controls (a different one each time), rather than
the ancestor.
So, effectively, I am looking for a piece of VB code which will allow me to
specify the Class Name of a control to load into a "placeholder" control.
How do I code that please?
Thanks,
Nick