Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为 Infragistics Ultramaskededit 设置输入掩码。它具有.Mask属性(字符串)。我已经尝试过"999,999.00",但这会减少美分,"###,###.##"但这会导致异常。
.Mask
"999,999.00"
"###,###.##"
我找到了解决方案-"#########.##"这是掩码,Type必须将框设置为double-一切正常。
"#########.##"
Type
double
使用此代码:
textBox.Mask = "c"