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 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


Send comments on this topic.
© 1999-2009 Exontrol Inc, Software. All rights reserved.