Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I....

Status
Not open for further replies.

ermora

IS-IT--Management
Apr 5, 2004
70
US
take a frame and all the controls found on it and make X duplicates of it (x being a dynamic number) while keeping each controls' (found on the frame) events functioning properly?

I have a Wizzard that walks a user through a process of updating an online document that can have several sub-documents attached. When the Wizzard arrives at the sub-documents, I need it to move through each sub-document using the same controls on a specific frame.

I know I could do this if I created a form and then just used Dim frmXX as frmSubDoc, but I rather not create another form as my application already has 20+.

Any tips are welcomed (maybe there is a different way of doing what I'm trying to do).

Thanks,
Ed
 
FYI:
I'm using VB6 (SP6a) and I need to do this "duplicate frame" at run-time.

Thanks,
Ed
 
>maybe there is a different way of doing what I'm trying to do

May be you create a user control in your project with all ocntrols that you require on your frame. After that you can load more instances of the user control along with all child controls using a single Load statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top