Type | Description | |||
OldFolder as ExShellFolder | A Folder object being unselected. | |||
NewFolder as ExShellFolder | A Folder object being selected. |
During run-time user clicks inside ExFolderView borders will result in a change to the current selection. There is always at least one folder selected. By clicking on some other folder, selection changes to newly clicked folder. After that happens, this event is fired. Note that this event does not occur if some change happens to currently selected folder (like its name, for instance), but only when some other folder is selected. The SelectedFolder property indicates the selected folder, at runtime. The control fires the BeforeSelChanged event to notify the control that the selection is about to be changed.
Syntax for AfterSelChanged event, /NET version, on:
private void AfterSelChanged(object sender,exontrol.EXFOLDERVIEWLib.ExShellFolder OldFolder,exontrol.EXFOLDERVIEWLib.ExShellFolder NewFolder) { } Private Sub AfterSelChanged(ByVal sender As System.Object,ByVal OldFolder As exontrol.EXFOLDERVIEWLib.ExShellFolder,ByVal NewFolder As exontrol.EXFOLDERVIEWLib.ExShellFolder) Handles AfterSelChanged End Sub |
private void AfterSelChanged(object sender, AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterSelChangedEvent e) { } void OnAfterSelChanged(LPDISPATCH OldFolder,LPDISPATCH NewFolder) { } void __fastcall AfterSelChanged(TObject *Sender,Exfolderviewlib_tlb::IExShellFolder *OldFolder,Exfolderviewlib_tlb::IExShellFolder *NewFolder) { } procedure AfterSelChanged(ASender: TObject; OldFolder : IExShellFolder;NewFolder : IExShellFolder); begin end; procedure AfterSelChanged(sender: System.Object; e: AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterSelChangedEvent); begin end; begin event AfterSelChanged(oleobject OldFolder,oleobject NewFolder) end event AfterSelChanged Private Sub AfterSelChanged(ByVal sender As System.Object, ByVal e As AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterSelChangedEvent) Handles AfterSelChanged End Sub Private Sub AfterSelChanged(ByVal OldFolder As EXFOLDERVIEWLibCtl.IExShellFolder,ByVal NewFolder As EXFOLDERVIEWLibCtl.IExShellFolder) End Sub Private Sub AfterSelChanged(ByVal OldFolder As Object,ByVal NewFolder As Object) End Sub LPARAMETERS OldFolder,NewFolder PROCEDURE OnAfterSelChanged(oExFolderView,OldFolder,NewFolder) RETURN |
<SCRIPT EVENT="AfterSelChanged(OldFolder,NewFolder)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function AfterSelChanged(OldFolder,NewFolder) End Function </SCRIPT> Procedure OnComAfterSelChanged Variant llOldFolder Variant llNewFolder Forward Send OnComAfterSelChanged llOldFolder llNewFolder End_Procedure METHOD OCX_AfterSelChanged(OldFolder,NewFolder) CLASS MainDialog RETURN NIL void onEvent_AfterSelChanged(COM _OldFolder,COM _NewFolder) { } function AfterSelChanged as v (OldFolder as OLE::Exontrol.FolderView.1::IExShellFolder,NewFolder as OLE::Exontrol.FolderView.1::IExShellFolder) end function function nativeObject_AfterSelChanged(OldFolder,NewFolder) return |
Private Sub ExFolderView1_AfterSelChanged(ByVal OldFolder As EXFOLDERVIEWLibCtl.IExShellFolder, ByVal NewFolder As EXFOLDERVIEWLibCtl.IExShellFolder) ExFolderCombo1.OpenedFolder = ExFolderView1.SelectedFolder End Sub
The following VB.NET sample changes the drop down opened folder when the user changes the selection in the ExFolderView control:
Private Sub AxExFolderView1_AfterSelChanged(ByVal sender As System.Object, ByVal e As AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterSelChangedEvent) Handles AxExFolderView1.AfterSelChanged AxExFolderCombo1.OpenedFolder = AxExFolderView1.SelectedFolder End Sub
The following VC sample changes the drop down opened folder when the user changes the selection in the ExFolderView control:
void OnAfterSelChangedFolderview1(LPDISPATCH OldFolder, LPDISPATCH NewFolder) { if ( IsWindow( m_folderCombo.m_hWnd ) && IsWindow( m_folderView.m_hWnd ) ) m_folderCombo.SetOpenedFolder( m_folderView.GetSelectedFolder() ); }
The following C# sample changes the drop down opened folder when the user changes the selection in the ExFolderView control:
private void axExFolderView1_AfterSelChanged(object sender, AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterSelChangedEvent e) { axExFolderCombo1.OpenedFolder = axExFolderView1.SelectedFolder; }
The following VFP sample changes the drop down opened folder when the user changes the selection in the ExFolderView control:
*** ActiveX Control Event *** LPARAMETERS oldfolder, newfolder thisform.ExFolderCombo1.OpenedFolder = thisform.ExFolderView1.SelectedFolder