Control Enter Event stops firing

  • Thread starter Thread starter TheFid
  • Start date Start date
T

TheFid

I have created a custom UserControl (I call it a "Workspace") that
contains four controls, one of which is an ActiveX control.

The Enter event of the ActiveX control is wired up.

If I embed two Workspace controls (say, A & B) in my form, the ActiveX
Enter event will only fire once for each Workspace, and then stops
firing.

Scenario:
1) Bring up the form.
2) Click A - the Enter event for A fires.
3) Click B - the Enter event for B fires.
4) Click A again and the Enter event for A does NOT fire,
5) Click B again and the Enter event for B does NOT fire,

Neither Enter events ever fire again.

If I place two of the ActiveX's on a form (i.e., not embedded in a
Workspace) and wire up the Enter event, they _never_ stop firing no
matter how many times I click on them.

What is it about embedding the ActiveX in a UserControl derived
control that breaks the Enter event?

Any guidance appreciated.

Cheers and TIA,
Mike
 
Back
Top