屏蔽的文本框和十进制 [英] Masked text box and decimal

查看:77
本文介绍了屏蔽的文本框和十进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在表单中放置一个带遮罩的文本框.我将遮罩设置为"###.##".在数字输入过程中,当我按."时.键光标不会在."的右侧移动.显示在盒子里.我必须做什么样的设置才能实现它?

In a form a put a masked text box. I set mask to "###.##". During number typing, when I press "." key cursor doesnt move on the right of the "." showed into the box. What kind of setting I have to do to make it happen?

致谢

推荐答案

我无法使用MaskedTextBox重现此行为.当我仅添加蒙版时,效果很好.

I am unable to reproduce this behavior with the MaskedTextBox. When I add only the Mask it works fine.

您是否更改了MaskedTextBox中的任何其他属性?您是否向控件事件中添加了任何代码?

Did you change any other properties in the MaskedTextBox? Did you add any code to the control Events?


这篇关于屏蔽的文本框和十进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆