hi.. i have an array of frames, lets say of 3 elements, all frames look the same but they represent a different file.. how can i create a new element of the array at runtime, keeping all the elements is has inside??
the following example uses a frame (frame1) with a command button (command1), label (label1), and a text box (text1) with each of the controls (frame, text box, label, and command button) index set to 0 (zero).
[tt]
Option Explicit
Private Sub Form_Load()
'load the new controls
Load Frame1(1)
Load Command1(1)
Load Label1(1)
Load Text1(1)
'set the containers position
Frame1(1).Left = Frame1(0).Width + 30
'set up each of the controls so they are in the same position as the origional
Set Command1(1).Container = Frame1(1)
Command1(1).Left = Command1(0).Left
Command1(1).Top = Command1(0).Top
Command1(1).Visible = True
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.