失去焦点时,MaskedTextBox被清除

时间:2012-12-24 09:45:25

标签: c# windows

我有MaskedTextBox输入屏蔽属性设置为“99/99/9999”的日期。当我运行应用程序并在MaskedTextBox中输入日期时,该值在失去焦点后消失。我怎么解决这个问题?

1 个答案:

答案 0 :(得分:0)

此链接可帮助您找到解决方案:

http://www.c-sharpcorner.com/uploadfile/mahesh/maskedtextbox-in-C-Sharp/

您是否将MaskTxtb​​ox的属性设置为以下图像

enter image description here

enter image description here

相关问题