Share via


Step 2: Setting Up the Visual Basic .NET Project (Visual Basic .NET Tutorial) [Office 2003 SDK Documentation]

Previous   Step 1: Setting Up the SimpleSample Document

Use the following steps to set up your SimpleSample smart document project in Microsoft Visual Basic .NET:

  1. Start Visual Studio .NET and create a new Visual Basic Class Library project.
  2. In the New Project dialog box, for Name, type SimpleSampleVB7.
  3. Rename the default module clsActions. This is the module in which you will insert the code for your smart document.

    How?

    • In the Solution Explorer, click the default class module, named Class1.vb.
    • In the Properties window, change the File Name property to clsActions, as shown in the following image.
    • Press ENTER. The Solution Explorer shows the new project name, as shown in the following image.
  4. Change Class1 in the code to clsActions.

    How?

    • Locate the code line that reads:
      Public Class Class1
    • Change it to read:
      Public Class clsActions
  5. Add a reference to the Microsoft Smart Tag 2.0 Type Library.

    How?

    • On the Project menu, click Add Reference.
    • In the Add Reference dialog box, click the COM tab.
    • Scroll in the list of components to Microsoft Smart Tag 2.0 Type Library, and then click Select to add it to the Selected Components list, as shown in the following image.
    • Click OK.

Next   Step 3: Creating the Smart Document DLL