How can i create list of textboxes in vb2012 to be like textbox(0).text textbox(1).text
t3cho
0
Newbie Poster
Recommended Answers
Jump to PostDim textbox As New ArrayList
Jump to PostFor i = 0 To 5 Dim textbox As New TextBox textbox.Name = "Textbox(" & i & ")" Me.Controls.Add(textbox) Next
but the textboxes will be created on top of each other so add the location inside the loop
textboxe.Location = New Point(X,Y) …
Jump to PostAnd if you want to attach event handlers to the textboxes just do
AddHandler <event>, AddressOf <subname>
as in
AddHandler TextBox1_TextChanged, AddressOf MyHandlerSub . . . Private Sub MyHandlerSub(sender As System.Object, e As System.EventArgs)
You can assign the same handler to all …
All 9 Replies
oussama_1
39
Posting Whiz in Training
t3cho
0
Newbie Poster
oussama_1
39
Posting Whiz in Training
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
t3cho
0
Newbie Poster
oussama_1
39
Posting Whiz in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
oussama_1
39
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.