By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

how to create event by coding for array of textbox

P: 1
Expand|Select|Wrap|Line Numbers
  1. Public Class Form7
  2.     Dim t1(5) As TextBox
  3. Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.      t1(0) = New TextBox()
  5.      t1(0).CharacterCasing = CharacterCasing.Upper
  6.      t1(0).Location = New Point(59, 56)
  7.      t1(0).BorderStyle = BorderStyle.FixedSingle
  8.      t1(0).Width = 252
  9.  
  10.      t1(1) = New TextBox()
  11.      t1(1).CharacterCasing = CharacterCasing.Upper
  12.      t1(1).Location = New Point(100, 56)
  13.      t1(1).BorderStyle = BorderStyle.FixedSingle
  14.      t1(1).Width = 252
  15.  
  16.      Me.Controls.Add(t1(0))
  17.      Me.Controls.Add(t1(1))
  18. End Sub
  19. End Class
I write a above code.

Please tell me how to create event for two TextBoxes above.
Jan 25 '13 #1
Share this Question
Share on Google+
2 Replies


Frinavale
Expert Mod 5K+
P: 9,731
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
Jan 25 '13 #2

PsychoCoder
Expert Mod 100+
P: 465
I have an idea of what you're looking for but what event are you trying to create for your TextBoxes?
Jan 29 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.