T
Tieske
here's what I have
a mainform, containing a textbox and a subform, the subform contains
togglebuttons and comboboxes
the subform onload event creates an object (class I designed myself). This
class, after being initialized has variables referencing some of the controls
on the mainform and some on the subform (variables are set OK, because I can
modify the captions from there, that works as expected)
the variables are defined within the class using "WithEvents".
The events for the textbox (keyup event) on the mainform behave as expected,
but the events for the toggle buttons and comboboxes (change and click
events) on the subform don't fire
Does anyone have an explanation for this behaviour? Am I doing something
wrong?
any help is appreciated, thx!.
Tieske
PS. as a workaround I now catch the events in the subform itself and from
there call the (supposed) event handlers in the class. Works, but is a bit
messy because I have to define the handlers as public in the class.
a mainform, containing a textbox and a subform, the subform contains
togglebuttons and comboboxes
the subform onload event creates an object (class I designed myself). This
class, after being initialized has variables referencing some of the controls
on the mainform and some on the subform (variables are set OK, because I can
modify the captions from there, that works as expected)
the variables are defined within the class using "WithEvents".
The events for the textbox (keyup event) on the mainform behave as expected,
but the events for the toggle buttons and comboboxes (change and click
events) on the subform don't fire
Does anyone have an explanation for this behaviour? Am I doing something
wrong?
any help is appreciated, thx!.
Tieske
PS. as a workaround I now catch the events in the subform itself and from
there call the (supposed) event handlers in the class. Works, but is a bit
messy because I have to define the handlers as public in the class.