If you have VB6 you can use the Controls.add method. You do not need to have a previous control of that type or control array.
To Create a label on a form:
Code:Dim i As Object Set i = Controls.Add("vb.label", "label1") i.Visible = True i.Caption = "hello"




Reply With Quote