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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame Load

Status
Not open for further replies.

TyGwyn

Programmer
Oct 5, 2005
31
0
0
GB
I can create frames on my form with the "Load" statement, but how do I create objects within the new frames again using the Load statement. I have a frame with an array of 16 check boxes, this frame requires to be duplicated 10 or more times and selected by SStab, the number of duplicate frames is dependant on an external variable.
 
Change the Container property

ex.
checkbox1.container=frame2

checkbox2.container=frame2

'now change it back
checkbox1.container=frame1

checkbox2.container=frame1
 
Thanks for that, had got that bit already sorted, because each frame has 16 checkboxes on it, I was hoping I could do a frame copy which would include its contained object arrays, but that would of been too easy.

Thanks again.
 

Try this

Dim obj As Control

For Each obj In Form1
If obj.Container.Name = "Frame1" Then
Debug.Print obj.Name
End If
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top