Viscom Software VideoCap ActiveX Control

InitControl Method

Description:   

For some development tools (MS Access, Agilent VEE Pro), you need call InitControl method to initialize the control first. When you import the ActiveX on Ms Access form. You must select the ActiveX Control's property page, set the IsMsAccess property= true. Then you need call InitControl method in form load event.

Usage:   

VideoCap1.InitControl


Return Value:

No Return Value..

Example:   

This is MS Access example. After called InitControl method, you can get the video devices, video formats, audio devices information.

Private Sub Form_Load()
        VideoCap0.InitControl

        cboVideoDevice.RowSource = ""

        For Each mydevice In VideoCap0.Devices
            cboVideoDevice.AddItem mydevice.Name
        Next


       cboVideoFormat.RowSource = ""
         For Each myVideoformat In VideoCap0.VideoFormats
            cboVideoFormat.AddItem myVideoformat.Name
        Next

End Sub