I am writing a class that will be used to emulate an option group, but allowing other controls, such as textboxes, whose events affect the other controls in the group. I have a class called cOptionGroup that contains a collection of instances of class cOption. Each cOption class instance contains one control from the group and hooks into specific events of that control using WithEvents.
Is there any way to raise an event inside cOption and allow cOptionGroup to hook into that event, even though cOption is part of a Collection? I do not want to limit the number of controls allowed inside the group by created a WithEvents variable for a set number of controls. In essence, how can I raise events from each control in my collection?
Any help is greatly appreciated,
Tom
Is there any way to raise an event inside cOption and allow cOptionGroup to hook into that event, even though cOption is part of a Collection? I do not want to limit the number of controls allowed inside the group by created a WithEvents variable for a set number of controls. In essence, how can I raise events from each control in my collection?
Any help is greatly appreciated,
Tom