Hi, guys.
I'm playing around of dynamic component creation at runtime.
I know how to do this, by two ways:
- Add at design time, a control element with index=0 and for a new instance: Load <ctrl>
- The other way, is dynamicaly create the control by adding a reference to control collection.It's a bit more complicated, but it does'n need the dummy design time control on the form/class.
What i'm asking is that i can't figure how to create a control array, in this way! The idea is to create a class that, when instantiated on a existing form, will create, without any references in design time, a huge matrix of buttons/panels, which configuration/layout will only be known at run time.
The idea of this, is to implement it over a vast number of forms using a centralized environment (created by the class).
If anyone ever do this (if it is possible to be done), I would apreciate a hint.
By the way, i left here, a link that clearly explains dynamic control creation, for those who never had ear about this.
Thanks in advance,
Carlos Paiva
I'm playing around of dynamic component creation at runtime.
I know how to do this, by two ways:
- Add at design time, a control element with index=0 and for a new instance: Load <ctrl>
- The other way, is dynamicaly create the control by adding a reference to control collection.It's a bit more complicated, but it does'n need the dummy design time control on the form/class.
What i'm asking is that i can't figure how to create a control array, in this way! The idea is to create a class that, when instantiated on a existing form, will create, without any references in design time, a huge matrix of buttons/panels, which configuration/layout will only be known at run time.
The idea of this, is to implement it over a vast number of forms using a centralized environment (created by the class).
If anyone ever do this (if it is possible to be done), I would apreciate a hint.
By the way, i left here, a link that clearly explains dynamic control creation, for those who never had ear about this.
Thanks in advance,
Carlos Paiva