Opening and Handling Devices: List Available Devices

This brief source code snippet illustrates how to list all devices that are available on a system.
Language:Visual Basic 6
Version:3.0.3
Released on:August 20, 2006
Author:IC Imaging Control Support Department
Requirements:IC Imaging Control >2.1
Camera, converter or grabber with WDM Stream Class drivers.

The Devices collection offers the functionality to list all devices that are available on a system. Devices.Count indicates the number of video capture devices found, while Devices(i).Name returns information about the i'th device, such as the device's name.

Private Sub Form_Load()
    For i = 1 To ICImagingControl1.Devices.Count
        List1.AddItem ICImagingControl1.Devices(i).Name
    Next i
End Sub

Private Sub Command1_Click()
    Unload Me
End Sub

The Testdialog of IC Imaging Contorol,

Related Source Code Samples

Disclaimer
The source code that appears in the IC Imaging Control Source Code Library is indented for educational purposes only. The Imaging Source Europe GmbH, the manufacturer of IC Imaging Control, does not assume any kind of warranty expressed or implied, resulting from the use of the content of this page.

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.