当前位置:网站首页>C # realizes the login interface, and the password asterisk is displayed (hide the input password)
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
2022-07-03 14:49:00 【Jack1009HF】
C# Realize the login interface , Password asterisk display ( Hide the input password )

In software design , It is often necessary to set the login permission of users . When the user fills in the password , How to realize input hiding , Or with “*” No. for hidden display ? We need to use textBox Of PasswordChar attribute .
Attribute interpretation
PasswordChar Property is used to get or set characters , This character is used to mask a single line TextBox Password characters in control .
Code
The following shows checkBox State switching response function Code
private void ckBoxPassword_CheckedChanged(object sender, EventArgs e)
{
if(ckBoxPassword.Checked)
{
tBoxPassword.PasswordChar = '\0'; // Display input
}
else
{
tBoxPassword.PasswordChar = '*'; // Show *
}
}
effect

engineering
Portal :
边栏推荐
猜你喜欢
![[ue4] HISM large scale vegetation rendering solution](/img/a2/2ff2462207e3c3e8364a092765040c.jpg)
[ue4] HISM large scale vegetation rendering solution

tonybot 人形機器人 紅外遙控玩法 0630

US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars

How to query the baby category of tmall on Taobao

Paper sharing: generating playful palettes from images

Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion

Pytorch深度学习和目标检测实战笔记

My QT learning path -- how qdatetimeedit is empty

基因家族特征分析 - 染色体定位分析

Tonybot humanoid robot starts for the first time 0630
随机推荐
Luogu p5536 [xr-3] core city solution
Introduction to opengl4.0 tutorial computing shaders
puzzle(016.4)多米诺效应
Niuke bm83 string deformation (case conversion, string inversion, string replacement)
Time conversion ()
数学常数表 by q779
Amazon, express, lazada, shopee, eBay, wish, Wal Mart, Alibaba international, meikeduo and other cross-border e-commerce platforms evaluate how Ziyang account can seize traffic by using products in th
Use of form text box (I) select text
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
Bucket sorting in C language
mmdetection 学习率与batch_size关系
Four data flows and cases of grpc
洛谷P5194 [USACO05DEC]Scales S 题解
C language DUP function
Zzuli: cumulative sum of 1050 factorials
How to query the baby category of tmall on Taobao
Dllexport and dllimport
Zzuli:1054 monkeys eat peaches
Zzuli:1058 solving inequalities
Piwigo 2.7.1 sqli learning