How to get raw text from MaskedTextBox?

后端 未结 3 1630
滥情空心
滥情空心 2021-01-19 03:38

I have a MaskedTextBox with this mask (999) 999 9999. When user inputs a number the text property would give this to me :

(0881) 444 5445

B

3条回答
  •  孤城傲影
    2021-01-19 04:04

    Try setting the maskedTextBox.TextMaskFormat property to MaskFormat.ExcludePromptAndLiterals

提交回复
热议问题