Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

Dim txtTextBox As System.Windows.Forms.TextBox
Dim iLoop As Integer

For iLoop = 0 To 9
txtTextBox = New TextBox()
txtTextBox.Name = "txtTextBox"&iLoop
txtTextBox.Text = CStr(iReadPresetsIn(iLoop))
Next iLoop
End Sub

The above was written in an attempt to “automatically” read “iReadPresetsIn” into textboxes on a form (“iReadPresetsIn” are variables that are read in from another application via an ActiveX).

The textboxes (on the application’s Form) are named txtTextBox0 through txtTextBox9.
The code compiles, but I’m not able to load anything into the form’s textboxes.

Terje