dynamic creation of controls? 
Author Message
 dynamic creation of controls?

I want to create instances of the Shape control in response to user input,
but i can't find anything in any of the documentation i've looked at about
dynamically creating controls.
This seems like it should be easy, but i can't seem to make it work.
If anyone knows how to do this, please let me know.
thanks,
Alan



Mon, 08 Jul 2002 03:00:00 GMT  
 dynamic creation of controls?
I think the command you are looking for is Load.  There are a couple of steps.

Add a Shape control to your form and set the index value to 0.  Set .visible
to false if you don't want it displayed.

Every time you want a new instance of the control do something like:
I=I + 1
Load Shape1(I)
Shape1(I).Visible = True (loads with false so this is needed)

The new control will load directly on top of the original control so you will
need to move it to see both.  Also, I believe the new control inherits the
properies of the original but don't hold me too it.

Hope this helps

Dan

Quote:

> I want to create instances of the Shape control in response to user input,
> but i can't find anything in any of the documentation i've looked at about
> dynamically creating controls.
> This seems like it should be easy, but i can't seem to make it work.
> If anyone knows how to do this, please let me know.
> thanks,
> Alan




Mon, 08 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Dynamic Creation of Controls

2. Dynamic creation of Control Array on a SSTab

3. Dynamic creation of Controls

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