Help on adding controls in run time 
Author Message
 Help on adding controls in run time

Anyone know how to add a usercontrol to a control array in run time?

Thanks!



Thu, 08 Aug 2002 03:00:00 GMT  
 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)



Fri, 09 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding ActiveX control at run-time - HELP!

2. Help: Adding frame controls at run time

3. HELP!!! Adding controls at run-time

4. Event handlers for controls added at run time

5. Adding controls at run-time

6. Add Controls at Run Time

7. Adding elements to a control array of Menu items with subMenus at Run time

8. Adding Controls at run time

9. Adding a control at run time

10. create & add controls array in run time

11. Add control at run time?

12. Adding Control at Run time

 

 
Powered by phpBB® Forum Software