event Search (State as SearchStateEnum)
Occurs when searching files starts or ends

TypeDescription
State as SearchStateEnum A SearchStateEnum expression that indicates the searching state. 

The Search event is fired when searching files starts or ends. Use the Search property to search for files. Use the Add method to add rules to customize the found items.  Use the StopSearch method to stop immediately searching the files. Use the Get property to get the collection of found files.

Syntax for Search event, /NET version, on:

private void Search(object sender,exontrol.EXFILEVIEWLib.SearchStateEnum State)
{
}

Private Sub Search(ByVal sender As System.Object,ByVal State As exontrol.EXFILEVIEWLib.SearchStateEnum) Handles Search
End Sub

Syntax for Search event, /COM version, on:

private void Search(object sender, AxEXFILEVIEWLib._IExFileViewEvents_SearchEvent e)
{
}

void OnSearch(long State)
{
}

void __fastcall Search(TObject *Sender,Exfileviewlib_tlb::SearchStateEnum State)
{
}

procedure Search(ASender: TObject; State : SearchStateEnum);
begin
end;

procedure Search(sender: System.Object; e: AxEXFILEVIEWLib._IExFileViewEvents_SearchEvent);
begin
end;

begin event Search(long State)
end event Search

Private Sub Search(ByVal sender As System.Object, ByVal e As AxEXFILEVIEWLib._IExFileViewEvents_SearchEvent) Handles Search
End Sub

Private Sub Search(ByVal State As EXFILEVIEWLibCtl.SearchStateEnum)
End Sub

Private Sub Search(ByVal State As Long)
End Sub

LPARAMETERS State

PROCEDURE OnSearch(oExFileView,State)
RETURN

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

<SCRIPT EVENT="Search(State)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function Search(State)
End Function
</SCRIPT>

Procedure OnComSearch OLESearchStateEnum llState
	Forward Send OnComSearch llState
End_Procedure

METHOD OCX_Search(State) CLASS MainDialog
RETURN NIL

void onEvent_Search(int _State)
{
}

function Search as v (State as OLE::Exontrol.ExFileView.1::SearchStateEnum)
end function

function nativeObject_Search(State)
return

The following VB sample displays a message when searching the files starts or ends:

Private Sub ExFileView1_Search(ByVal State As EXFILEVIEWLibCtl.SearchStateEnum)
    Select Case State
        Case EXFILEVIEWLibCtl.SearchStateEnum.StartSearching
            Debug.Print "Start searching '" & ExFileView1.Search & "' files"
        Case EXFILEVIEWLibCtl.SearchStateEnum.EndSearching
            Debug.Print "End searching"
    End Select
End Sub

The following C++ sample displays a message when searching the files starts or ends:

void OnSearchExfileview1(long State) 
{
	switch ( State )
	{
		case 0: /*StartSearching*/
		{
			OutputDebugString( "Start searching ..." );
			break;
		}
		case 1: /*EndSearching*/
		{
			OutputDebugString( "End searching ..." );
			break;
		}
	}
}

The following VB.NET sample displays a message when searching the files starts or ends:

Private Sub AxExFileView1_SearchEvent(ByVal sender As Object, ByVal e As AxEXFILEVIEWLib._IExFileViewEvents_SearchEvent) Handles AxExFileView1.SearchEvent
    Select Case e.state
        Case EXFILEVIEWLib.SearchStateEnum.StartSearching
            Debug.Print("Start searching '" & AxExFileView1.Search & "' files")
        Case EXFILEVIEWLib.SearchStateEnum.EndSearching
            Debug.Print("End searching")
    End Select
End Sub

The following C# sample displays a message when searching the files starts or ends:

private void axExFileView1_SearchEvent(object sender, AxEXFILEVIEWLib._IExFileViewEvents_SearchEvent e)
{
	switch (e.state)
	{
		case EXFILEVIEWLib.SearchStateEnum.StartSearching:
		{
			System.Diagnostics.Debug.WriteLine("Start searching '" + axExFileView1.Search + "' files.");
			break;
		}
		case EXFILEVIEWLib.SearchStateEnum.EndSearching:
		{
			System.Diagnostics.Debug.WriteLine("End searching");
			break;
		}
	}
}

The following VFP sample displays a message when searching the files starts or ends:

*** ActiveX Control Event ***
LPARAMETERS state

do case
	case state = 0
		wait window nowait "Start searching"
	case state = 1
		wait window nowait "End searching"
endcase