Platform SDK: Broadcast Architecture

Adding the Video Control to a Visual Basic Project

You can add the Video control to a Visual Basic application. To do this, use the following procedure.

To add the Video control to a Visual Basic project

  1. Open or create a Visual Basic project.
  2. On the Project menu, click Components. A list of the installed components appears.
  3. In the Controls box, click to select the Microsoft BPC Video Server and Control module check box. If this control is not listed, verify that the Microsoft® WebTV™ for Windows component of the Microsoft® Windows 98® operating system is installed. If the computer does not have WebTV for Windows installed, install WebTV for Windows.
  4. Click OK to close the Components dialog box. The Video control is added to your Visual Basic project and appears as an icon in the Toolbox.

Once the Video control is added to your project, you can drag and drop it onto a form or dialog box. You can then set its properties using the form or dialog box's property sheet.

To call the methods and properties of the Video control, your application uses the name of the Video control. For example, if the name of the Video control is vid, you use the following code to display the Video control's About dialog box.

vid.AboutBox

To create instances of other Microsoft BPC Video Server and Control module objects, use the New keyword. For example, the following code creates a new BPCVBIControl object.

Dim vbi As BPCVBIControl
Set vbi = New BPCVBIControl