' and i want to add 3 another textbox's on the form using code
' but an error appears telling me that (NOT LEGAL NAME)
' i tried many times and using collection and every thing possible
' but it didn't solve the problem
' May you help me or give me notes
Dim ctrl As Control
for i=1 to 3
Set ctrl = Me.Controls.Add("vb.textbox", "text(" & i & ")", me)
With ctrl
.Left = text(0).left
.Top = text(0).top+text(0).height+50
.Width = text(0).width
.Height = text(0).height
.Alignment = 1
.Appearance = 0
.Visible = True
End With
Next i
This post has been edited by EMOHD: 12 January 2009 - 06:58 AM

New Topic/Question
Reply




MultiQuote



|