![]() | Type | Description |

The following VB sample displays the list of files once that user changes the filter:
Private Sub ExFileView1_FilterChange()
With ExFileView1.Get(VisibleItems)
For i = 0 To .Count - 1
With .Item(i)
Debug.Print .Name
End With
Next
End With
End Sub
The following C++ sample displays the list of files once that user changes the filter:
void OnFilterChangeExfileview1()
{
CFiles files = m_fileview.GetGet( 3 /*VisibleItems*/ );
for ( long i = 0; i < files.GetCount(); i++ )
OutputDebugString( files.GetItem( COleVariant( i ) ).GetName() );
}
The following VB.NET sample displays the list of files once that user changes the filter:
Private Sub AxExFileView1_FilterChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxExFileView1.FilterChange
With AxExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.VisibleItems)
Dim i As Integer
For i = 0 To .Count - 1
With .Item(i)
Debug.WriteLine(.Name())
End With
Next
End With
End Sub
The following C# sample displays the list of files once that user changes the filter:
private void axExFileView1_FilterChange(object sender, EventArgs e)
{
EXFILEVIEWLib.Files files = axExFileView1.get_Get(EXFILEVIEWLib.TypeEnum.VisibleItems);
for (int i = 0; i < files.Count; i++)
{
EXFILEVIEWLib.File file = files[i];
System.Diagnostics.Debug.WriteLine(file.Name);
}
}
The following VFP sample displays the list of files once that user changes the filter:
*** ActiveX Control Event *** With thisform.ExFileView1.Get(3) && VisibleItems For i = 0 To .Count - 1 With .Item(i) wait window nowait .Name EndWith Next EndWith
Send comments on this topic. © 1999-2008 Exontrol Inc, Software. All rights reserved.