You can only do it if you have at least one of the control type already on the form, as an item in a control array. For example, put a Text Box onto a form, give it an index of 0. Then add this code:
If you want to create a control without one already present, you'd need to go the api route.Code:Private Sub Form_Load() Load Text1(1) Text1(1).Visible = True Text1(1).Top = Text1(1).Top + Text1(1).Height + 60 End Sub




Reply With Quote