ShowSelectDevice Method
Displays a dialog box that enables the user to select a hardware device for image acquisition.
Syntax
object.ShowSelectDevice( _ [DeviceType As WiaDeviceType,] _ [AlwaysSelectDevice As Boolean,] _ [CancelError As Boolean]) As Device
Parameters
DeviceType
Optional. WiaDeviceType value.
UnspecifiedDeviceType
Default. The device type is unknown.AlwaysSelectDevice
Optional. Boolean value that indicates whether to always show the select device dialog box.
False
Default. Do not show the select device dialog box.True
Show the select device dialog box.CancelError
Optional. Boolean value that indicates whether to generate an error if the user cancels the dialog box.
False
Default. Do not generate an error.True
Generate an error.
Return Value
Returns the selected Device object on success, otherwise returns Nothing.
Remarks
For example code, see Take a Picture in Shared Samples.
Method Information
Minimum operating systems Windows XP SP1
See Also
CommonDialog, ShowAcquireImage, ShowAcquisitionWizard, ShowDeviceProperties, ShowSelectItems, Device, Type (Device), Connect, Type (DeviceInfo), Device (VideoPreview)