property MaskEdit.ActiveMask as Long
Specifies the index of active mask.

TypeDescription
Long A long expression that indicates the index of active mask.

The number of masks used is determined by the Masks property. If the Masks property is not empty, the control loads multiple masks. Else, if the Mask property is used, the control uses only a single mask.

The following sample changes the active mask after loading the masks list to the control:

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