Type | Description |
Fired when a new folder is opened by the user. The newly opened folder is found in the OpenedFolder property. The SelectedFolder property indicates the selected folder in the ExFolderView control. The ShellFolder property retrieves the shell folder based on the folder's identifier.
The following VB sample shows how to link a the drop down control with a EXFolderView control:
Private Sub ExFolderCombo1_NewFolderOpened() ExFolderView1.SelectedFolder = ExFolderCombo1.OpenedFolder End Sub
The following VB sample displays the path of the newly selected folder:
Private Sub ExFolderCombo1_NewFolderOpened() Debug.Print ExFolderView1.ShellFolder(ExFolderCombo1.OpenedFolder).PathName End Sub
The following C# sample shows how to link a the drop down control with a EXFolderView control:
private void axExFolderCombo1_NewFolderOpened(object sender, EventArgs e) { axExFolderView1.SelectedFolder = axExFolderCombo1.OpenedFolder; }
The following VB.NET sample shows how to link a the drop down control with a EXFolderView control:
Private Sub AxExFolderCombo1_NewFolderOpened(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxExFolderCombo1.NewFolderOpened AxExFolderView1.SelectedFolder = AxExFolderCombo1.OpenedFolder End Sub
The following VC sample shows how to link a the drop down control with a EXFolderView control:
void OnNewFolderOpenedFoldercombo1() { if ( IsWindow( m_folderCombo.m_hWnd ) && IsWindow( m_folderView.m_hWnd ) ) m_folderView.SetSelectedFolder( m_folderCombo.GetOpenedFolder() ); }
The following VFP sample shows how to link a the drop down control with a EXFolderView control:
thisform.ExFolderView1.SelectedFolder = thisform.ExFolderCombo1.OpenedFolder