我怎么能揭露C#密码文本框和屏蔽回密码 [英] how can i unmask c# password textbox and mask it back to password

查看:90
本文介绍了我怎么能揭露C#密码文本框和屏蔽回密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这怎么行设置为密码文本框:

how can password textbox that set to :

password_txtBox.PasswordChar ="*"

(从复选框)被揭露,然后再搜索面膜
没有松动的文本字符串里面

to be unmasked ( from checkbox ) and then mask again
without loosing the string inside the textbox

推荐答案

只需将该属性设置为 0 (默认值)不能掩盖字符。

Just set the property to 0 (default value) to not mask characters.

来源:<一个href=\"http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.passwordchar.aspx\">http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.passwordchar.aspx

这篇关于我怎么能揭露C#密码文本框和屏蔽回密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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