hello Rob
thanks for your reply.
actually i am already doing this, since the shortcut menu calls a engine/wrapper which then calls the agent. either way, this does not work for me, since i do not get control over the right click event (and other) of the agent this way.
by the way, i am working with Vfp6.0 Sp5.
>One thing you can do is create a class based on Custom, and give it a property called AgentControl. Then in the Init of the class, say:
>
>
this.agentControl = CreateObject("Agent.Control.2")
>
>In VFP7, there's an _agent.vcx in the FFC directory that does this.