property MaskEdit.Masks as String
Retrieves or sets a value that determines all possible masks that user can use at runtime.

 TypeDescription 
   String A string expression that defines the list of masks in the control.  

Use the Masks property to assign multiple masks to the control. Use the Mask property to assign a single mask to the control. The MaskChange event is fired  when user changes the current mask. The Masks property is composed by pairs description and mask.  The list of masks is delimited by ";" character. Use the VisibleMasks property to specify the number of visible items in the control's masks list.

The following sample adds two masks to the control:

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


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