
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