Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the DeviceID (Device) for this Device.
This property is read-only.
Syntax
Property DeviceID( _
)
Property value
String value.
Examples
The following example shows how to display the name and ID of the selected device.
Dim dev 'As Device
Set dev = CommonDialog1.ShowSelectDevice
MsgBox "You selected the following device" & vbCrLf & _
"Name:" & dev.Properties("Name").Value & vbCrLf & _
"DeviceID:" & dev.DeviceID
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 R2 [desktop apps only] |
Header |
|
IDL |
|