Adding the Video Control to a Microsoft Visual Basic Project

[This is preliminary documentation and subject to change.]

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. Select Components from the Project menu. A list of the installed components appears.
  3. Select the check box next to Microsoft BPC Video Server and Control module. If the control is not listed, check whether the computer has the Microsoft® WebTV® for Windows component of the Microsoft® Windows 98® operating system installed.
  4. Click OK. The Video control is added to the project and appears as an icon in the Toolbox.

Once the Video control is added to the project, you can drag-and-drop it onto a form or dialog box and set its properties using the form or dialog box's property sheet. You can call the methods and properties of the Video control using the name of the Video control. For example, if the name of the Video control is vid, you would use the following 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 creates a new BPCVBIControl object.

Dim vbi As BPCVBIControl
Set vbi = New BPCVBIControl
 

Software provided with the Broadcast Architecture Programmer's Reference includes a sample Visual Basic control, Vid_Tune.ocx, and a sample Visual Basic application, VidCntrl.exe, that use the Video control. For more information about these samples, see Broadcast Architecture Sample Applications.