event MaskChange ()
Occurs when the user changes the control's mask.

TypeDescription

The MaskChange event occurs if user changes the Mask property.  The MaskChange event occurs when user selects a new mask from the control's masks list. Use the Masks property to assign multiple masks to the control. The Change event notifies your application once the control's Text property is changed ( the control's content ).

Syntax for MaskChange event, /NET version, on:

private void MaskChange(object sender)
{
}

Private Sub MaskChange(ByVal sender As System.Object) Handles MaskChange
End Sub

Syntax for MaskChange event, /COM version, on:

private void MaskChange(object sender, EventArgs e)
{
}

void OnMaskChange()
{
}

void __fastcall MaskChange(TObject *Sender)
{
}

procedure MaskChange(ASender: TObject; );
begin
end;

procedure MaskChange(sender: System.Object; e: System.EventArgs);
begin
end;

begin event MaskChange()
end event MaskChange

Private Sub MaskChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MaskChange
End Sub

Private Sub MaskChange()
End Sub

Private Sub MaskChange()
End Sub

LPARAMETERS nop

PROCEDURE OnMaskChange(oMaskEdit)
RETURN

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

<SCRIPT EVENT="MaskChange()" LANGUAGE="JScript">
</SCRIPT>

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

Procedure OnComMaskChange 
	Forward Send OnComMaskChange 
End_Procedure

METHOD OCX_MaskChange() CLASS MainDialog
RETURN NIL

void onEvent_MaskChange()
{
}

function MaskChange as v ()
end function

function nativeObject_MaskChange()
return

The following sample displays the current control's mask when the user changes the mask from the control's masks list:

Private Sub Form_Load()
    With MaskEdit1
        .Masks = "USA resident;(090)-###-###-###;Canada resident;(091)-###-###-###"
    End With
End Sub

Private Sub MaskEdit1_MaskChange()
    Debug.Print "The current mask is: " & MaskEdit1.Mask
End Sub