当前位置:网站首页>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 :
边栏推荐
- 1017 a divided by B (20 points)
- 洛谷P4047 [JSOI2010]部落划分 题解
- PS tips - draw green earth with a brush
- Zzuli:1058 solving inequalities
- 关于敏捷的一些概念
- Pyqt interface production (login + jump page)
- Yolov5进阶之九 目标追踪实例1
- Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
- Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
- Tonybot humanoid robot checks the port and corresponds to port 0701
猜你喜欢

Dllexport et dllimport
![[graphics] hair simulation in tressfx](/img/41/cef55811463d3a25a29ddab5278af0.jpg)
[graphics] hair simulation in tressfx

The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!

Use of form text box (I) select text

Detailed explanation of four modes of distributed transaction (Seata)

Happy capital new dual currency fund nearly 4billion yuan completed its first account closing

C language fcntl function

Rasterization: a practical implementation (2)
![[graphics] efficient target deformation animation based on OpenGL es 3.0](/img/53/852ac569c930bc419846ac209c8d47.jpg)
[graphics] efficient target deformation animation based on OpenGL es 3.0

tonybot 人形机器人 首次开机 0630
随机推荐
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
Rasterization: a practical implementation (2)
556. The next larger element III
Zzuli:1054 monkeys eat peaches
Dllexport and dllimport
Analysis of gene family characteristics - chromosome location analysis
分布式事务(Seata) 四大模式详解
C language DUP function
牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
从书本《皮囊》摘录的几个句子
Creation of data table of Doris' learning notes
Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
On MEM series functions of C language
Qt development - scrolling digital selector commonly used in embedded system
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
Zzuli:1045 numerical statistics
Protobuf and grpc
tonybot 人形機器人 紅外遙控玩法 0630