我想将输入框字符显示为* [英] I want display inputbox character as *
本文介绍了我想将输入框字符显示为*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过输入框从用户那里获取密码.所以我想显示输入框char用*显示.怎么做.
请帮帮我
谢谢
解决方案
请参阅此MSDN文章:
http://msdn.microsoft.com/en-us/library/d3223ht2.aspx [ ^ ]
因此,如果您需要代码
textBox1.PasswordChar = "
简短答案:You can''t
但是您可以创建一个自定义WinForm,并在其上使用带有密码Char的TextBox.
看这个:
创建自己的输入框
I want to get password from user via inputbox. so i want to display the input box char is display with *. how to do it.
Please help me
Thank you
解决方案
See this MSDN article:
http://msdn.microsoft.com/en-us/library/d3223ht2.aspx[^]
So, If you want the code
textBox1.PasswordChar = "*"
Short Answer:You can''t
But you can create a Custom WinForm and use a TextBox on it with passoword Char.
Look at this:
Create your own inputbox
这篇关于我想将输入框字符显示为*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文