Type | Description |
Indicates that the control's contents is changed. Occurs when a DDE link updates data, when a user changes the mask, or when you change the Text property setting through code. The Change event procedure can synchronize or coordinate data display among controls. The MaskChange property is fired once the user changes the control's Mask property.
Syntax for Change event, /NET version, on:
private void Change(object sender) { } Private Sub Change(ByVal sender As System.Object) Handles Change End Sub |
private void Change(object sender, EventArgs e) { } void OnChange() { } void __fastcall Change(TObject *Sender) { } procedure Change(ASender: TObject; ); begin end; procedure Change(sender: System.Object; e: System.EventArgs); begin end; begin event Change() end event Change Private Sub Change(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Change End Sub Private Sub Change() End Sub Private Sub Change() End Sub LPARAMETERS nop PROCEDURE OnChange(oMaskEdit) RETURN |
<SCRIPT EVENT="Change()" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Change() End Function </SCRIPT> Procedure OnComChange Forward Send OnComChange End_Procedure METHOD OCX_Change() CLASS MainDialog RETURN NIL void onEvent_Change() { } function Change as v () end function function nativeObject_Change() return |
Here's a VB6 sample that handles the Change event:
Private Sub MaskEdit1_Change() Debug.Print "The Change event was fired. The new control's mask value is: " & MaskEdit1.Text() End Sub