how to create event by coding for array of textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • balaji321
    New Member
    • Jan 2013
    • 1

    how to create event by coding for array of textbox

    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
    I write a above code.

    Please tell me how to create event for two TextBoxes above.
    Last edited by Frinavale; Jan 25 '13, 07:16 PM. Reason: Please use code tags when posting code.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Please explain what you are trying to do in more detail.
    What event are you talking about?

    Are you trying to handle an event for the dynamic TextBoxes?


    -Frinny

    Comment

    • PsychoCoder
      Recognized Expert Contributor
      • Jul 2010
      • 465

      #3
      I have an idea of what you're looking for but what event are you trying to create for your TextBoxes?

      Comment

      Working...