How to add controls to Controls.Collection?

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have an array of controls:
Dim MyControls() As Control
....

How can I add all the controls in MyControls array to a control
collection?

Thanks,
Miguel
 
In VB.NET:

For i As Integer = 0 To MyControls.Length-1
myControlCollection.Add(MyControls(i))
Next

Riki
 
Back
Top