event BeforeSelChanged (OldFolder as ExShellFolder, NewFolder as ExShellFolder, ByRef Cancel as Boolean)
Fired before a folder is selected.

TypeDescription
OldFolder as ExShellFolder A Folder being un-selected.
NewFolder as ExShellFolder A Folder being selected.
Cancel as Boolean (By Reference) A Boolen expression that indicates whether the operation is executed or canceled.
This event is fired before the current selection is changed. Setting the Cancel parameter to True prevents the selection from being changed. The NewFolder parameter lets you know which folder will become selected if you do not cancel the selection change and the OldFolder parameter lets you know which folder is currently selected. The SelectedFolder property indicates the selected folder, at runtime. The control fires the AfterSelChanged event after the user changes the selection.

Syntax for BeforeSelChanged event, /NET version, on:

private void BeforeSelChanged(object sender,exontrol.EXFOLDERVIEWLib.ExShellFolder OldFolder,exontrol.EXFOLDERVIEWLib.ExShellFolder NewFolder,ref bool Cancel)
{
}

Private Sub BeforeSelChanged(ByVal sender As System.Object,ByVal OldFolder As exontrol.EXFOLDERVIEWLib.ExShellFolder,ByVal NewFolder As exontrol.EXFOLDERVIEWLib.ExShellFolder,ByRef Cancel As Boolean) Handles BeforeSelChanged
End Sub

Syntax for BeforeSelChanged event, /COM version, on:

private void BeforeSelChanged(object sender, AxEXFOLDERVIEWLib._IExFolderViewEvents_BeforeSelChangedEvent e)
{
}

void OnBeforeSelChanged(LPDISPATCH OldFolder,LPDISPATCH NewFolder,BOOL FAR* Cancel)
{
}

void __fastcall BeforeSelChanged(TObject *Sender,Exfolderviewlib_tlb::IExShellFolder *OldFolder,Exfolderviewlib_tlb::IExShellFolder *NewFolder,VARIANT_BOOL * Cancel)
{
}

procedure BeforeSelChanged(ASender: TObject; OldFolder : IExShellFolder;NewFolder : IExShellFolder;var Cancel : WordBool);
begin
end;

procedure BeforeSelChanged(sender: System.Object; e: AxEXFOLDERVIEWLib._IExFolderViewEvents_BeforeSelChangedEvent);
begin
end;

begin event BeforeSelChanged(oleobject OldFolder,oleobject NewFolder,boolean Cancel)
end event BeforeSelChanged

Private Sub BeforeSelChanged(ByVal sender As System.Object, ByVal e As AxEXFOLDERVIEWLib._IExFolderViewEvents_BeforeSelChangedEvent) Handles BeforeSelChanged
End Sub

Private Sub BeforeSelChanged(ByVal OldFolder As EXFOLDERVIEWLibCtl.IExShellFolder,ByVal NewFolder As EXFOLDERVIEWLibCtl.IExShellFolder,Cancel As Boolean)
End Sub

Private Sub BeforeSelChanged(ByVal OldFolder As Object,ByVal NewFolder As Object,Cancel As Boolean)
End Sub

LPARAMETERS OldFolder,NewFolder,Cancel

PROCEDURE OnBeforeSelChanged(oExFolderView,OldFolder,NewFolder,Cancel)
RETURN

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

<SCRIPT EVENT="BeforeSelChanged(OldFolder,NewFolder,Cancel)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function BeforeSelChanged(OldFolder,NewFolder,Cancel)
End Function
</SCRIPT>

Procedure OnComBeforeSelChanged Variant llOldFolder Variant llNewFolder Boolean llCancel
	Forward Send OnComBeforeSelChanged llOldFolder llNewFolder llCancel
End_Procedure

METHOD OCX_BeforeSelChanged(OldFolder,NewFolder,Cancel) CLASS MainDialog
RETURN NIL

void onEvent_BeforeSelChanged(COM _OldFolder,COM _NewFolder,COMVariant /*bool*/ _Cancel)
{
}

function BeforeSelChanged as v (OldFolder as OLE::Exontrol.FolderView.1::IExShellFolder,NewFolder as OLE::Exontrol.FolderView.1::IExShellFolder,Cancel as L)
end function

function nativeObject_BeforeSelChanged(OldFolder,NewFolder,Cancel)
return