event DblClick ()

Fired when the user double clicks an item.

TypeDescription

The DblClk event is fired whenever the user double clicks a file or a folder. Use the ExpandOnDblClk property to specify whether the folder is expanded or collapsed when the user double clicks it. By default, if the user double clicks a folder , the control browses for a new folder. Use the BrowseFolderPath property to specify the path to the browsed folder. Use StateChange event to notify your application when the current selection is changed. Use the Get property to retrieve the selected item(s). Use the Folder property to specify whether the File object holds a file or a folder. Use the ExecuteContextCommand method to invoke a command from the file's context menu.

Syntax for DblClick event, /NET version, on:

private void DblClick(object sender)
{
}

Private Sub DblClick(ByVal sender As System.Object) Handles DblClick
End Sub

Syntax for DblClick event, /COM version, on:

private void DblClick(object sender, EventArgs e)
{
}

void OnDblClick()
{
}

void __fastcall DblClick(TObject *Sender)
{
}

procedure DblClick(ASender: TObject; );
begin
end;

procedure DblClick(sender: System.Object; e: System.EventArgs);
begin
end;

begin event DblClick()
end event DblClick

Private Sub DblClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DblClick
End Sub

Private Sub DblClick()
End Sub

Private Sub DblClick()
End Sub

LPARAMETERS nop

PROCEDURE OnDblClick(oExFileView)
RETURN

Syntax for DblClick event, /COM version (others), on:

<SCRIPT EVENT="DblClick()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function DblClick()
End Function
</SCRIPT>

Procedure OnComDblClick 
	Forward Send OnComDblClick 
End_Procedure

METHOD OCX_DblClick() CLASS MainDialog
RETURN NIL

void onEvent_DblClick()
{
}

function DblClick as v ()
end function

function nativeObject_DblClick()
return

The following VB sample opens that file being double clicked:

Private Sub ExFileView1_DblClick()
    With ExFileView1.Get(SelItems)
        If (.Count > 0) Then
            With .Item(0)
                If (Not .Folder) Then
                    ExFileView1.ExecuteContextCommand .Name, .Folder, "Open"
                End If
            End With
        End If
    End With
End Sub

The following C++ sample opens that file being double clicked:

void OnDblClickExfileview1() 
{
	CFiles files = m_fileview.GetGet( 0 );
	if ( files.GetCount() > 0 )
	{
		CFile1 file = files.GetItem( COleVariant( (long)0 ) );
		m_fileview.ExecuteContextCommand( file.GetName(), file.GetFolder(), "Open" );
	}	
}

The following VB.NET sample opens that file being double clicked:

Private Sub AxExFileView1_DblClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxExFileView1.DblClick
    With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.SelItems)
        If (.Count > 0) Then
            With .Item(0)
                If (Not .Folder) Then
                    AxExFileView1.ExecuteContextCommand(.Name, .Folder, "Open")
                End If
            End With
        End If
    End With
End Sub

The following C# sample opens that file being double clicked:

private void axExFileView1_DblClick(object sender, EventArgs e)
{
	EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.SelItems);
	if (files.Count > 0)
	{
		EXFILEVIEWLib.File file = files[0];
		axExFileView1.ExecuteContextCommand(file.Name, file.Folder, "Open");
	}
}

The following VFP sample opens that file being double clicked:

*** ActiveX Control Event ***

With thisform.ExFileView1.Get(0)	&& SelItems
    If (.Count > 0) Then
        With .Item(0)
            If (Not .Folder) Then
                thisform.ExFileView1.ExecuteContextCommand(.Name, .Folder, "Open")
            EndIf
        EndWith
    EndIf
EndWith