我可以通过编程方式添加它来使用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
如何遇到这个问题.... 提前致谢