Multi-line mask for MaskedTextBox

I have a MaskedTextBoxWinforms application. I need a multi-line mask, fe:

"999999\r\n
 999999\r\n
 999999\r\n
 00/00/0000"

I read the msdn documentation and was surprised to see that there is no new line or something like that.

I know that I can write my own custom control to fix this problem, but a masked text box would be a simpler solution. So, I have 2 questions: is there a way to add a new line to the mask? If not, then why does Control support multi-line - is it useless?

Thank you in advance

+4
source share
1 answer

, MaskedTextBox , , "" MaskedTextBox

public string Format1 {get;set;} 
public string Format2 {get;set;} 
public string FormatX {get;set;} 

"" "LinesCount" .., 5, 5 MaskedTextBox ( )

public List<string> Formats {get;set;}

MaskedTextBox

public List<X> Values 

MaskedTextBox.Value, X - , , .

, , :),

+2

All Articles