display letter A in mask maskedtextbox

妖精的绣舞 提交于 2019-12-13 07:05:08

问题


i am just thinking about how to display a letter in a maskedtextbox in VS .net 4. I can set up all letters, except an 'A' because it is used as a dummy for alphanumeric letters in in the mask. I want to display the unity "Ampere" in the mask after the value.

Thank you.


回答1:


Use backslash to escape special characters. \A will do what you want.
http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask.aspx



来源:https://stackoverflow.com/questions/15114466/display-letter-a-in-mask-maskedtextbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!