MS Agent is a graphical character that might be used for animated help, learning
Microsoft® Agent is a software technology that enables an enriched form of user
interaction that can make using and learning to use a computer, easier and more
MS Agent can be easily integate into windows .net application. Below is the step
by step process to add MS Agent into you .net application and do basic animation.
Create a new .net windows application
Add AxAgent control in the ToolBox from the COM Components. To do this right click
on tool box and select "Chose Item". A pop up will appear. Select "COM Components"
and scroll down to "Microsoft Agent Control 2.0". Select and add reference to your
A new control "AxAgent" will appear in the ToolBox. Add this control to you windows
form by dragging it on the form.
Open the source of the form and create a new character.
public partial class Form2 : Form
Now, we have to intialize the agent on form load. To do this add below code
private void Form2_Load(object sender, EventArgs e)
this.character = this.axAgent1.Characters["merlin"];
If you see above code then you may notice that we are using "Merlin" agent. To use
any agent, you must have that agent installed on your system. You can download agents
from the Microsoft Agent website.
You agent is ready. You can animate this by using its commands. Below are some animation
this.character.MoveTo(120, 120, null);
this.character.Speak("Welcome to DailyCoding..!!", null);