Appframe Knowledge Base


1 hits
0

Upper case letters mask (TextEdit and MemoEdit)

Dim vMaskProps As New DevExpress.XtraEditors.Mask.MaskProperties()
vMaskProps.MaskType = Mask.MaskType.RegEx
vMaskProps.UseMaskAsDisplayFormat = True
vMaskProps.EditMask = "(\p{Lu}|[0-9]|\W)+"

'For TextEdit:
vTextEdit.Properties.Mask.Assign(vMaskProps)

'For MemoEdit:
vMemoEdit.MaskBox.Mask.Assign(vMaskProperties)

'TextEdit mask can be set in design time, not the case with MemoEdit.

win · Perma link post comment Posted by: Tomas Dambrauskas (08-mar-2013)