
Originally Posted by
Graff
Not to mention you can't do textbox(4).text in .net because control arrays where removed.
For all practical purposes, Control Arrays DO still exist in .NET. You just don't have a Control.Index property. They are not called that, but there is an Array of Controls available. E.G.
VB Code:
Dim ctl As Control
Dim TBArray(0) As TextBox
Dim iCount As Integer
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
TBArray(iCount) = CType(ctl, TextBox)
iCount += 1
ReDim Preserve TBArray(iCount)
End If
Next
Or you can make up your own index using the Tag property but that is not so flexible.