Tutorials    Freebies    Links    Feedback    Thank me
Agent Store   Agent Games   Legal notice    History
Home

Intro»»Part 1»»Part 2»»Part 3»»Part 4»»Part 5

The first steps

Once you have added the code to load the MS Agent control, declare the "Request object" in the General | Declarations section of a form. The code you should enter goes like this:

Dim RequestName As IAgentCtlRequest

You should replace RequestName with whatever you want to name the request. It is a good idea to give a descriptive name, as with any programming work.

You now need to add a command button and a picture to the form. Set their properties like this:

Command button: Name = cmdStart, Caption = Start the act
Picture box: Name = picPicture

The picture can be of anything you want.

Intro»»Part 1»»Part 2»»Part 3»»Part 4»»Part 5