[英]Automatic decimal places in textbox center of six digits in vb.net
我想显示六位数的逗号符号中心,并具有文本框7的长度。例如“ 123,456”。
The MaskedTextBox control would be an easy way to accomplish this. MaskedTextBox控件将是实现此目的的简便方法。
Replace your TextBox by a MaskedTextBox, and try to set the Mask
to something like this: 用MaskedTextBox替换您的TextBox,然后尝试将
Mask
设置如下:
MaskedTextBox1.Mask = "##0,000"
It should make sure that your trailing zero are always showing. 它应确保始终显示尾随零。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.