ICImagingControl.Device Property

Returns or sets a video capture device. A list of all available video capture devices can be obtained using the Devices collection, which can be retrieved with a call to ICImagingControl.Devices.
Syntax:
Public Device As String
Remarks:

Changing the device invalidates the ICImagingControl.VideoNorm and the ICImagingControl.InputChannel property and those which depend on these.

Sample:

This example selects the first available device:

Private Sub Form_Load()
    Dim Dev As Device

    ' Get the first video capture device
    Set Dev = ICImagingControl1.Devices.Item( 1 )

    ' Set the video capture device with the name property of Dev
    ICImagingControl1.Device = Dev.Name
End Sub

Selecting devices, input channels, video norms and video formats is shown in the Making Device Settings chapter.

See also: ICImagingControl, ICImagingControl.Devices, ICImagingControl.DeviceValid

<< ICImagingControl