Esteban,
When you press F1, VFP looks for the HelpContextID on the active control, then its parent, and so forth up the hierarchy. That's why I suggested you add a container to your PageFrame and then put the ActiveX in the container. You would then use the invisible container's HelpContextID for your F1 help.
Barbara
>Hi Barbara, Thank for your interest and your quickly reply!
>
>I have the ActiveX control inside the PageFrame that have seted the HelpContextID. The problem is that VFP have reserved the F1 key to automatically call the topic of the help when this key is pressed.
>For the rest of the controls, this works OK. I only do the follow:
>1. Set Help to myhlp.hlp
>2. Set the HelpContextID of the all controls in all forms (except for the ActiveX because the related problem)
>
>When the focus is in a Text box (for example) and I press F1, the Help is called.
>When the focus is in a TreeView control and I press F1, nothing. Also if the TreeView is in a PageFrame with your HelpContextID seted.
>
>Any suggestion ???