event DblClick ()
Fired when the user dblclicks on the control area.

 TypeDescription 
The DblClick event notifies your application when the user double clicks an object in the shell view control. Use the Get(SelectedItems) property to retrieve the selected objects. Use the Atribute property to specify whether the object is a file or a folder, or whether a specified attribute for the object is set.

The following VB sample opens the files when the user double clicks a file object:

Private Sub ExShellView1_DblClick()
    With ExShellView1
        .Objects.Get (SelectedItems)
        With ExShellView1.Objects
            If (.Count > 0) Then
                Dim i As EXSHELLVIEWLibCtl.ExShellObject
                Set i = .Item(0)
                If (Not i.Attribute(IsFolder)) Then
                    i.InvokeCommand ("Open")
                End If
            End If
        End With
    End With
End Sub


Send comments on this topic.
© 1999-2011 Exontrol.COM, Software. All rights reserved.