PromptChar for vb.NET的MaskedTextBox将提示显示为mm:ss

时间:2018-05-22 06:48:40

标签: vb.net

我可以通过编程方式添加它来使用mask-textbox的PromptChar属性但是我无法将显示PromptChar显示为" MM:SS"我写了下面的代码。

Mtxt = New MaskedTextBox
Mtxt.Name = "txtRTime" & IND
Mtxt.Font = New Font("arial", 8, FontStyle.Regular)
Mtxt.Visible = True
Mtxt.Height = 30
Mtxt.Width = 110
Mtxt.MaxLength = 4
Mtxt.Mask = "00:00"
Mtxt.PromptChar = "MM,SS" 'here is my code but it gives o/p as MM:MM instead of 'MM:SS'
Mtxt.Top = 90
Mtxt.Left = 130
Mtxt.ShortcutsEnabled = False

如何遇到这个问题.... 提前致谢

0 个答案:

没有答案