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