Hi,
I have a class that handles input from a Serial Port, I have then created an ArrayList of these classes to deal with the supported number of Ports.
I would like to add some public shared events to the class that will only fire on the currently active port.
For example if I have 4 instances of my SerialPort class in my ArrayList and the 2 instance is the active one only it will raise the events.
I then need a way of catching these events as the normal way doesn't work since using WithEvents is pointless on what is deemed an ArrayList.
I'd appreciate your thoughts on this one thanks.
I have a class that handles input from a Serial Port, I have then created an ArrayList of these classes to deal with the supported number of Ports.
I would like to add some public shared events to the class that will only fire on the currently active port.
For example if I have 4 instances of my SerialPort class in my ArrayList and the 2 instance is the active one only it will raise the events.
I then need a way of catching these events as the normal way doesn't work since using WithEvents is pointless on what is deemed an ArrayList.
I'd appreciate your thoughts on this one thanks.