c# - MaskedTextBox multiline asciionly -


when

maskedtextbox srccodebox = new maskedtextbox(); srccodebox.asciionly = true; srccodebox.multiline = true; 

multiline not works.

why?

the answer pretty simple - should not work.

  1. maskedtextbox not supposed multiline.
    according msdn, maskedtextbox.multiline property

    gets or sets value indicating whether multiline text box control. property not supported maskedtextbox.

    however, not main problem.

  2. asciionly property disables multiline behaviour because allows english alphabet letters.

    according msdn, maskedtextbox.asciionly property

    if true, asciionly restricts user input characters a-z , a-z. ascii control characters not allowed.

    newline (line break) ascii control character. in other words, multiline not work asciionly simple textbox control.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -