troubleshooting Question

Customize the way the CollectionBase Items construct at design-time.

Avatar of Alexandre Simões
Alexandre SimõesFlag for Switzerland asked on
.NET Programming
6 Comments1 Solution296 ViewsLast Modified:
Hi...

I've seen, on 3rd party controls, items being added to collections AT DESIGN-TIME BY THE VS CODE GENERATOR as:

Collection.Items.Add(New ColItem(arg1))

How can I do this?
Usually, what the code generator does is to create the object as all others and all it to the collection:
Collection.Items.Add(ColItem)

Also, there are colelctions that add items using the AddRange...
How can I specify the way I want my collection items get added to the collection?

Thanks.

Alex :p
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros