I have a custom userform Control, clsTwoInput.
Basically, it is a Frame that contains a CheckBox and two InputBoxes.
The CheckBox toggles the visibility of the InputBoxes and the clsTwoInput.Value is the .Value of the visible InputBox.
Each of the InputBoxes is either a TextBox or a clsTwoInput.
This works fine, until I try to get the clsTwoInput to generate a Change event.
Here is my current clsTwoInput code.
When I try to add WithEvents to the declaration of clOneInput, I get an compile error "Cannot handle events for the object specified"
In the attached user form, OuterInput is a clsTwoInput that has its checkbox, one text box and one clsTwoInput, InnerBox.
Changing OuterInput by clicking the checkbox or by typing into the checkbox will trigger the OuterInput_Change event, but changing InnerBox will not.
Is there a way for a custom object, that has a different instance of that object as a property of that object, to receive Events from the sub-instance of itself?
Bookmarks