Fired when the selected property is changed.
Type | Description |
The SelChange event notifies your application that user changes the selection. The SelChange event is not called when the control browses a new object using the Select method. The SelectedProperty property gets the selected property. The Name property gets the property's name. The Value property gets the property's value.
Syntax for SelChange event, /NET version, on:
private void SelChange(object sender) { } Private Sub SelChange(ByVal sender As System.Object) Handles SelChange End Sub |
private void SelChange(object sender, EventArgs e) { } void OnSelChange() { } void __fastcall SelChange(TObject *Sender) { } procedure SelChange(ASender: TObject; ); begin end; procedure SelChange(sender: System.Object; e: System.EventArgs); begin end; begin event SelChange() end event SelChange Private Sub SelChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelChange End Sub Private Sub SelChange() End Sub Private Sub SelChange() End Sub LPARAMETERS nop PROCEDURE OnSelChange(oPropertiesList) RETURN |
<SCRIPT EVENT="SelChange()" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function SelChange() End Function </SCRIPT> Procedure OnComSelChange Forward Send OnComSelChange End_Procedure METHOD OCX_SelChange() CLASS MainDialog RETURN NIL void onEvent_SelChange() { } function SelChange as v () end function function nativeObject_SelChange() return |
The following sample prints the name and the type of the selected property ( for instance, the sample is useful to find out the type of the property selected, when you need to include or exclude properties using the IncludeProperty event):
Private Sub PropertiesList1_SelChange() Debug.Print "You have selected the """ & PropertiesList1.SelectedProperty.Name & """. The type for it is: " & PropertiesList1.SelectedProperty.Type End Sub