wrote:
I have written a class and would like to create multiple instances of it without having a pre-defined limit(ie like a select case of dim statements instantiating and naming the new instance's)
The way to create an arbitrary number of instances of an object, is to use a generic List, which you can then add to as often as you like.
wrote:
I actually have two classes that I want multiple instances of say, "A" and "B" .Then I want say, the third instance of A to be able to call a method in the fifth instance of "B" ,with again the instances being made on the fly.
You can use delegates to hook up methods between classes, but to do what you're describing in an arbitrary way sounds unworkable to me. You can certainly create a specific instance of both classes, and use a delegate to hook them to each other, but to do that in an arbitrary, ad hoc manner, I don't see a reason for it. Delegates are how you do it tho.