|
SearchEngine.OnProgress Event |
Top Previous Next |
|
Occurs at regular intervals to report search progress.
Event Data
The event handler receives the following arguments representing the current search progress.
Remarks
This event is fired at approximately 100ms intervals providing a snapshot of the current search progress.
Example
[Visual Basic]
Private Const BYTES_PER_MB As Integer = 1024 * 1000
Private Sub SearchEngine_OnProgress(ByVal nPhase As Integer, ByVal strLocation As String, _ ByVal nContentTotal As Double, ByVal nFileTotal As Double) Handles m_engineSearch.OnProgress
' Received at regular intervals during search to show the current progress of the search.
LabelProgress.Text = String.Format("Phase {0} ({1:n2} of {2:n2})", _ nPhase, nContentTotal / BYTES_PER_MB, nFileTotal / BYTES_PER_MB) LabelLocation.Text = "Searching: " + strLocation LabelProgress.Refresh()
End Sub |