I have a class that raises a StateChanged event. It is working fine as a single instance. I would like to have a number of instances of this class and be able to handle the events raised - for instance an array of classes that I could extend (i.e. ReDim). However, as the error message says "'WithEvents' variables cannot be typed as arrays".
Is there any way I can have a dynamic number of instances of this class, or will have to declare the maximum number I think will be used individually?
Is there any way I can have a dynamic number of instances of this class, or will have to declare the maximum number I think will be used individually?