
Help on adding controls in run time
Hi Brett:
Quote:
> Anyone know how to add a usercontrol to a control array in run time?
If you place one of the usercontrols on the form at design time, and set the
Index property (normally to zero), then you can use the Load statement, i.e.
Load UserControl1(1)
...etc
UserControl1(1).Visible = True
If you have VB6, then you can also use the Controls.Add method (see vb docs
for specifics).
HTH,
--
Doug Marquardt (VB MVP)