Hey dequadin,
No, I am not a VB 6 dev. technically I am not even a dev at all, just need to get some stuff done for a university project, and am really struggling here
No, the controls are added at runtime, and I assign each one a name at runtime of "txtBox" & i.
Looked at those about.com articles, but it all seems a bit confusing...
Basically, from what I understand in VB 6 it was possible to do something like this:
Code:
For i = 1 to n
listbox1.items.add(txtbox(i).name)
Next
[\Code]
And this is not possible any more in VB 2005/.net
Anything else I can try to achieve a similar result?[/quote]
The code mentioned in his reply to you will work because at runtime, the textboxes are created.
Me.Controls will expose all of the textboxes (that have been created) for you on a button click. (As per the example)
Unless you have an infinite loop going and textboxes are being created all the time....???
Remember kids. Once the onload finishes, you can do pretty much whatever you want with the code suggested in the original reply