(100 pts) Creating/destroying controls at run-time in VB6
Posted on 1999-01-18
I am using VB6 but also have VB5... I can use either for this.
I have an ActiveX control that I created called "DragButton" which is basically a beefed-up CommandButton. At run-time, I need to create this control so I don't have to put a bunch of these buttons on the form and hide/show them when I need a new them. I'd like to just create one when I need it and destroy it when I no longer need it.
How can I do this? Please provide some sample code and a brief explaination. I'll award 100 points if you can help on this one.