Hello,

On my form I have a textbox with the following name: txtTextBox
I've also put an Index on it with the value 0.

No I want to add a new textbox at runtime on my form with the same name, but with a new index.
I did this:
Code:
Set btnObj = Controls.Add("VB.Text", "txtTextBox")
With btnObj
   .Index = 1
   .Visible = True
   .MultiLine = True
   .Width = 2000
   .Top = 500
   .Left = 5500
   .ForeColor = vbBlack
   .Text = ""
End With
On the Set statement, i'v get an error with says:
There is already a control with the name 'txtTextBox'

So, can anyone tell me how I can add a new control with the same name.