Share via


CommonDialog.ShowDeviceProperties method

Displays the Properties dialog box for the specified Device.

Syntax

CommonDialog.ShowDeviceProperties( _
  ByVal Device As Device, _
  [ ByVal CancelError As VARIANT_BOOL ] _
) As HRESULT

Parameters

Device [in]

Type: Device*

Required. Device value.

CancelError [in, optional]

Type: VARIANT_BOOL

Boolean value that indicates whether to generate an error if the user cancels the dialog box.

Value Meaning
False
Default. Do not generate an error.
True
Generate an error.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

The following example shows how to display the Properties dialog box for the selected device.

Dim dev 'As Device
Set dev = CommonDialog1.ShowSelectDevice
CommonDialog1.ShowDeviceProperties dev

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

CommonDialog

ShowAcquisitionWizard

ShowSelectDevice

ShowSelectItems

Device

Connect

Device (VideoPreview)