Search code examples
vb.netvb6vb6-migrationmaskedtextbox

Equivalent in vb.net's MaskedTextBox to cliptext property in vb6's Masked Edit control


I find this property useful but cannot find a direct replacement for it in vb.net. Is there one? Thanks


Solution

  • Just call maskedTextBox1.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals before you get the text from the Text property.