By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,099 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

How to add controls to Controls.Collection?

P: n/a
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

Jun 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In VB.NET:

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

Riki

"shapper" <md*****@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
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

Jun 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.