Hi
When putting a VB6 built ActiveX control on a Windows Form
you get several troubles concerning focus in that form.
First of all the Enter and Leave events for the ActiveX
control only fires once.
Then if you got a button on the form that lies directly on
the Windows Form and presses this, it gets
the "Acceptbutton" shade and whenever you press Enter it
will be clicked. This is OK, but when you set focus on the
ActiveX control again, the "AcceptButton" shade will not
disappear. While having focus on the ActiveX control, any
subsequent keypresses on the Enter-key will fire the click-
event on that button and make the user very confused about
what happened.
Is there something you could do when writing that VB6
ActiveX control to avoid this behavior, or is this a
general bug concerning all ActiveX controls being placed
on Windows Forms?
Please let me know if you've got the answer!
/Patrik Karlsson