我想在输入框中使用*
字符但提示错误
conversion from "*" to string invalid
如何让我的输入框将输入的文本隐藏为密码字符?
这是我的代码
Dim value As String
value = InputBox("Security Check", " Enter password", "*")
If value = "123456" Then
numr.Enabled = True
End If
End Sub
最佳答案
使用内置的 Function InputBox 是不可能实现这一点的。您设置的值“*”是该函数的默认值。 http://msdn.microsoft.com/en-us/library/6z0ak68w(v=vs.90).aspx
这是你可以做的事情。 http://www.vbforums.com/showthread.php?627996-Accepting-password-characters-for-InputBox-function
关于vb.net - 在输入框中使用密码字符 "*",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18834874/