John. it easy.
Create either you textboxes in design time or in runtime.
let suppse test1,test2, test3....
assign a tag to each textbox.
in new sub of the form do this:
Dim arrText as new arraylist
add all textboxes and others objects you want into the the array list
arrText.add test1
arrText.add test2.
Now, to use in your application
dim t as textbox
For each Obj in arrText
if typeof(Obj) is TextBox then
t=ctype(Obj,textbox)
if t.tag="1" then
'dosomething
end if
end if
next
"John" <(E-Mail Removed)> wrote in message
news:8EB5B79F-3BF1-4813-9AE3-(E-Mail Removed)...
> i have lists with 10 and more textboxes for example test1.text,
test2.text
> ...i want as i could do in vb6 with just a copy-paste of the same textbox,
to
> have an array like test(1).text, test(2).text and to change the contents
> with a loop like "for"...is there any simple way to solve it?
> thank you in advance
|