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.