For starters, help yourself by explaining what it is you're talking about. What agent are you talking about? What is not working? What errors do you get?
I suspect you might be talking about Microsoft Agent. These articles might provide you with a place to start:
Programming the MS Agent Control[
^]
´
How to use Microsoft Agent in C#[
^]
Programming Microsoft Agent in Windows Forms[
^]
Announcer in C#.NET using Microsoft Agent[
^]
If it IS indeed MS agent you're talking about, then to the best of my knowledge, Microsoft has discontinued supporting it (which might explain why it's not working), so your best bet in that case would be to find some other way of communicating with your users.
See this link:
http://www.microsoft.com/MSAgent/[
^] [EDIT]Actually I was wrong, Microsoft has released an Agent package for Windows 7 - Check the link[/EDIT]
I'm not saying it cannot be made to work on windows 7 (haven't tried), but even if you get it to work, it could give you problems with the next windows version. Better to give it up...