InputBox中的密码掩码 [英] Password Mask in InputBox

查看:516
本文介绍了InputBox中的密码掩码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在打开表单之前显示一个输入框,以便将其隐藏起来。我希望输入框的文本是密码字符(*)。



如何完成?

I need to show an inputbox before opening a form so as to hide it from others. I want the text of the inputbox to be a password character (*).

How to accomplish?

推荐答案

请尝试TextBox2.PasswordChar属性



请参阅此链接获取示例应用程序。



http://dotnetdud.blogspot.in/2009/06/ how-to-mask-password-text-in-textboxes.html [ ^ ]



如果你不是在寻找这个,请详细说明你的方案...
Please try TextBox2.PasswordChar property

Please refer this link for a sample app.

http://dotnetdud.blogspot.in/2009/06/how-to-mask-password-text-in-textboxes.html[^]

If you are not looking for this, please elaborate your scenario ...


如果我理解清楚,我的答案就是

只需设计您的OWN输入框,必要时显示相同的内容,

使用
If I understand clearly, my Answer is
Just Design Your OWN input box, Display the same whenever necessary,
Use
frmInputBox.ShowDialog()

将表单显示为对话框...

to Show Form as Dialog box...


TextBox1.PasswordChar = "*";



喜欢这个???


like this ???


这篇关于InputBox中的密码掩码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆