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.
maskedtextboxnot supposed multiline.
according msdn, maskedtextbox.multiline propertygets or sets value indicating whether multiline text box control. property not supported maskedtextbox.
however, not main problem.
asciionlyproperty 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,
multilinenot workasciionlysimpletextboxcontrol.
Comments
Post a Comment