Dynamic Creation of Controls 
Author Message
 Dynamic Creation of Controls

Can you dynamically create and destroy controls from within a control.

I have a UserControl (main) running in a browser.  Can it dynamically create
a UserControl (say a frame with some stuff on it) that main will be the
parent of, use it, then destroy it?

If so.  How is this done?

Thanks,

Brian



Tue, 28 May 2002 03:00:00 GMT  
 Dynamic Creation of Controls
Hi Brian:


Quote:
> Can you dynamically create and destroy controls from within a control.

If you pre-populate the control with at least one of the control types, and
set the Index property (normally = 0), then you can use the "Load"
statement.
If you have VB6, then you can also use the Controls.Add method.

--
Doug Marquardt (VB MVP)



Tue, 28 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Dynamic Creation of Controls

2. dynamic creation of controls?

3. Dynamic creation of Control Array on a SSTab

4. Dynamic creation of Controls

5. Dynamic Controls Creation and Referencing the new Control.

6. Dynamic Control Creation, Controls object has no .Add ???

7. Dynamic creation of web controls in VB.NET

8. Dynamic Control Creation - Expand Form?

9. Dynamic control creation

10. Dynamic control creation and calling DOS programs from VB.

11. VB6-Dynamic Control Creation

12. Dynamic control creation-HOW???

 

 
Powered by phpBB® Forum Software