Okay so maybe i'm looking at this problem the wrong way and if I am please tell me but here goes.
I have a class lets call it newcycles.vb and that class has multiple events.
When I called in my program I say something like dim cyc1 as newcycles
I set up multiple eventhandlers to handle the events in the class in the program.
But I need to be able to dynamically create as many instances of the class as I need depending on the user. The only way I could think of was copy and paste the each declaration and event handler x amount of times. That seems ridicoulous and by copy and paste I mean like
Dim cy1 as newcycles dim cy2 as newcycles dim cyc3 as newcycles etc etc then the event handles Public event bla handles cy1.bla Public event bla2 handles cy2.bla
Is there a better way to do this? Oh and I'm doing this in vb.net.