Code:
Public Class Form7
Dim t1(5) As TextBox
Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
t1(0) = New TextBox()
t1(0).CharacterCasing = CharacterCasing.Upper
t1(0).Location = New Point(59, 56)
t1(0).BorderStyle = BorderStyle.FixedSingle
t1(0).Width = 252
t1(1) = New TextBox()
t1(1).CharacterCasing = CharacterCasing.Upper
t1(1).Location = New Point(100, 56)
t1(1).BorderStyle = BorderStyle.FixedSingle
t1(1).Width = 252
Me.Controls.Add(t1(0))
Me.Controls.Add(t1(1))
End Sub
End Class
Please tell me how to create event for two TextBoxes above.
Comment