CommonDialog.ShowItemProperties method

Displays the Properties dialog box for the specified Item.

Syntax

CommonDialog.ShowItemProperties( _
  ByVal Item As Item, _
  [ ByVal CancelError As VARIANT_BOOL ] _
) As HRESULT

Parameters

Item [in]

Type: Item*

Required. Item 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 Item Properties dialog box for the selected item.

Dim dev 'As Device
Dim itms 'As Items
Dim itm 'As Item

Set dev = CommonDialog1.ShowSelectDevice
Set itms = CommonDialog1.ShowSelectItems(dev, UnspecifiedIntent, _
                                         MaximizeQuality, True)
Set itm = itms(1)
CommonDialog1.ShowItemProperties itm

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

ShowTransfer

ExecuteCommand (Device)

GetItem

Item

ExecuteCommand (Item)

Item (Items)