this?
VB Code:
  1. Dim t(2) As TextBox
  2.    Sub wahehehe()
  3.       Dim i As Integer
  4.       Dim y As Integer = 20
  5.       For i = 0 To 2
  6.          t(i) = New TextBox()
  7.          t(i).Location = New Point(10, y)
  8.          t(i).ReadOnly = True
  9.          t(i).Name = "textbox" & i.ToString
  10.          t(i).Text = t(i).Name
  11.          Me.Controls.Add(t(i))
  12.          AddHandler t(i).KeyDown, AddressOf hahaha
  13.          y += 22
  14.       Next
  15.    End Sub
  16.  
  17.    Sub hahaha(ByVal sender As Object, ByVal e As KeyEventArgs)
  18.       Dim c As TextBox = sender
  19.       MessageBox.Show(c.Text)
  20.    End Sub