As dictated by Karl Moore:
1] Create a new Visual Basic project
2] Click 'Project', 'References'
3] Find and select 'Microsoft Agent Control 2.0'
4] Create the following public variables in the 'General Declarations' section behind your Form:
Code:
Dim WithEvents CoreAgent As Agent
Dim Assistant As IAgentCtlCharacterEx
5] Add a Command Button to Form1
6] Change it's Caption to "Initialise Agent"
7] Insert the following code behind the Command Button:
Code:
Set CoreAgent = New Agent
CoreAgent.Characters.Load "Assistant"
Set Assistant = CoreAgent.Characters("Assistant")
The only way to access MSAgent is through the control. You can either add it to the references of your project or add the MSAgent component to your components list. I believe this is the better way to do it as you do not need a form to use the agent.