Im trying to add the textboxes in a form to a control collection which I will test later. For some reason my control collection ends up empty. None of the controls are added. Any help would be greatly appreciated. Code follows.
Code:
Dim contcoll As ControlCollection Dim cont As Control contcoll = New ControlCollection(Me) For Each cont In Me.Controls If TypeOf cont Is TextBox Then contcoll.Add(cont) End If Next
Comment