Type | Description |
Use the FilterChange event to notify your application that the control's filter is changed. Use the Filter and FilterType properties to retrieve the column's filter string, if case, and the column's filter type. The ApplyFilter and ClearFilter methods fire the FilterChange event. Use the DisplayFilterButton property to add a filter bar button to the column's caption. Use the FilterBarHeight property to specify the height of the control's filter bar. Use the FilterBarFont property to specify the font for the control's filter bar. Use the FilterBarCaption property to change the caption of the control's filter bar.
The following VB sample changes the caption in the control's filter bar when the user changes the filter:
Private Sub ComboBox1_FilterChange() With ComboBox1 .FilterBarCaption = "custom filter caption" End With End Sub
The following C++ sample changes the caption in the control's filter bar when the user changes the filter:
void OnFilterChangeCombobox1() { m_combobox.SetFilterBarCaption( "custom filter caption" ); }
The following VB.NET sample changes the caption in the control's filter bar when the user changes the filter:
Private Sub AxComboBox1_FilterChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxComboBox1.FilterChange With AxComboBox1 .FilterBarCaption = "custom filter caption" End With End Sub
The following C# sample changes the caption in the control's filter bar when the user changes the filter:
private void axComboBox1_FilterChange(object sender, EventArgs e) { axComboBox1.FilterBarCaption = "custom filter caption"; }
The following VFP sample changes the caption in the control's filter bar when the user changes the filter:
*** ActiveX Control Event *** with thisform.ComboBox1 .FilterBarCaption = "custom filter caption" endwithSyntax for FilterChange event, /NET version, on:
private void FilterChange(object sender) { } Private Sub FilterChange(ByVal sender As System.Object) Handles FilterChange End Sub |
private void FilterChange(object sender, EventArgs e) { } void OnFilterChange() { } void __fastcall FilterChange(TObject *Sender) { } procedure FilterChange(ASender: TObject; ); begin end; procedure FilterChange(sender: System.Object; e: System.EventArgs); begin end; begin event FilterChange() end event FilterChange Private Sub FilterChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FilterChange End Sub Private Sub FilterChange() End Sub Private Sub FilterChange() End Sub LPARAMETERS nop PROCEDURE OnFilterChange(oComboBox) RETURN |
<SCRIPT EVENT="FilterChange()" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function FilterChange() End Function </SCRIPT> Procedure OnComFilterChange Forward Send OnComFilterChange End_Procedure METHOD OCX_FilterChange() CLASS MainDialog RETURN NIL void onEvent_FilterChange() { } function FilterChange as v () end function function nativeObject_FilterChange() return |