Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

Programming MSAgent in VB Express 2008

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dvanwig - 03 Mar 2008 14:11 GMT
Trying to get started programming MSAgent using Visual Basic 2008 Express.  I
have VB6 working code, but cannot figure out the new syntax for setting up
the initial declarations to get MSAgent working.  Can somebody get me started
with a simple Form with a textbox and a button where if the user clicks the
button, Merlin will popup and say whatever is in the text box?  I'll expand
from there.  Thanks a bunch.
Eric Moreau - 04 Mar 2008 11:08 GMT
I did it with VB.Net2003. Probably the same. See
http://www.emoreau.com/Entries/Articles/2005/06/Using-MS-Agent-in-a-VBNet-applic
ation.aspx


Signature

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)
Membre du réseau .NET Expertise  (www.dotnet-expertise.com)

> Trying to get started programming MSAgent using Visual Basic 2008 Express.
> I
[quoted text clipped - 6 lines]
> expand
> from there.  Thanks a bunch.
Dvanwig - 08 Mar 2008 21:20 GMT
Hello Eric,
Thanks for your help.  I have Merlin popping up now and speaking.  However,
I have a problem where my code will not respond to an idlestart event.  Here
is a simple code sample that will not fire the subroutine when Merlin enters
an idle state.  Can you tell me what's wrong and why?

Thanks again for your help.

Doug vW

Public Class Form1
   Public Merlin As AgentObjects.IAgentCtlCharacter
   Public ctlAgent As New AgentObjects.Agent
   Public Const DATAPATH = "C:\Windows\Msagent\Chars\Merlin.acs"
   Private Sub frmMerlinForm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
       ctlAgent.Connected = True
       ctlAgent.Characters.Load("Merlin", DATAPATH)
       Merlin = ctlAgent.Characters("Merlin")
       Merlin.Show()
       Merlin.Speak("Hello World")
   End Sub
   Private Sub Agent_IdleStart(ByVal Merlin As Object, ByVal e As
AxAgentObjects._AgentEvents_IdleStartEvent) Handles Agent.IdleStart
       Merlin.Speak("Good Bye!")
       End
   End Sub
   Private Sub btnQuit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnQuit.Click
       End
   End Sub
End Class

> I did it with VB.Net2003. Probably the same. See
> http://www.emoreau.com/Entries/Articles/2005/06/Using-MS-Agent-in-a-VBNet-applic
ation.aspx

[quoted text clipped - 9 lines]
> > expand
> > from there.  Thanks a bunch.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.