关于MaskedTextBox组件的问题 [英] a question about MaskedTextBox component
问题描述
我想使用MaskedTextBox来实现某些功能。
我设置了MaskedTextBox.Mask = @\ X ########## \ Y ########## \Z ##########,所以我按键'123',主持人可以支持,然后我按键。它阻止我按下键。
我只是想MasketTextBox可以假设浮点类型,格式不能限制。除了X,Y,Z之外的位置。
请不要使用文本框,谢谢你的回答。
-------------------------------------------------- ------
改善我的排名:
xyz表示x轴,y轴,z轴(它是步进电机);我在MasketTextBox中设置值如下:
X234.1 Y23.123 Z457.928357
所以步进电机将到达值位置。
< blockquote>不幸的是,MaskedTextBox控件不够聪明。 I wanna use MaskedTextBox to achive some function. 这篇关于关于MaskedTextBox组件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
尝试解决方案十进制,实数,浮动的MaskedTextBox掩码? [ ^ ]
获取C#TextBox控件 [
http://stackoverflow.com/questions/14432659/masked -textbox-with-decimal-numbers [ ^ ](来自Zarathos的那个)
I set MaskedTextBox.Mask = @"\X##########\Y##########\Z##########",so i key press '123',the compenent can support,then i key press . it prevent me to key press down.
i just wanna the MasketTextBox can suppose float type,and the format can't limit the . position except X,Y,Z .
please do not use textbox,thanks for answer.
--------------------------------------------------------
improve my quetion:
x y z means x axis,y axis, z axis(it's step motor);i set the value in MasketTextBox as below:
X234.1 Y23.123 Z457.928357
so the step motor will reach the value position.The MaskedTextBox control isn't clever enough for your needs unfortunately.
Try the solutions MaskedTextBox mask for decimal, real, float ?[^]
Masked C# TextBox Control[^]
http://stackoverflow.com/questions/14432659/masked-textbox-with-decimal-numbers[^] (the one from Zarathos)