I have a Sub routine that will create multiple textboxes automatically at run time. The problem I have is how do I determine which textbox is which. Below are my codes:

Public Sub mtplResult(ByRef plcHolder As String)
Dim txtResult As New TextBox()
Dim txtAward As New TextBox()
Dim lblAmount As New Label()
Dim strTextBoxInc As String
Dim strTextBoxResult As String

x = 8
n += 1

If blnSchlTF = True And blnQlfy = False Then
h = 60 'from 50 to 60
x = 8
y = 8
strTextBoxResult = "txtBoxScholarship"
ElseIf blnSchlTF = True And blnQlfy = True Then
If h = 60 AndAlso y = 8 Then
h = 165
x = 8
y = 90 'from 80 to 90
Else
y += 175
End If
strTextBoxResult = "txtQualifiedApplicant"
End If
pnlAppResult.SuspendLayout()
With txtResult
.Name = strTextBoxResult
.Width = 264
.Height = h
.AllowDrop = True
.Location = New Point(x, y)
.AutoSize = True
.Multiline = True
.ScrollBars = ScrollBars.Vertical
.Text = plcHolder
.BackColor = System.Drawing.Color.White
.ReadOnly = True
.Visible = True
.Show()
End With
AddHandler txtResult.DragEnter, AddressOf txtResult_DragEnter
AddHandler txtResult.DragDrop, AddressOf txtResult_DragDrop
pnlAppResult.Controls.Add(txtResult)
pnlAppResult.ResumeLayout(True)
End Sub
Base on the boolean vairable, certain textbox with different textbox.name will be generated. But how do I work with, let's say, txtResult.Name = "txtBoxScholarship" directly?

Many thanks in advance!

Chong