当前位置:网站首页>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 :
边栏推荐
- 关于敏捷的一些概念
- Dllexport et dllimport
- Zzuli:1057 prime number determination
- FPGA blocking assignment and non blocking assignment
- Code writing and playing method of tonybot humanoid robot at fixed distance
- cpu飙升排查方法
- 光猫超级账号密码、宽带账号密码 获取
- [engine development] in depth GPU and rendering optimization (basic)
- My QT learning path -- how qdatetimeedit is empty
- Common shortcut keys in PCB
猜你喜欢

Four data flows and cases of grpc

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

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03

QT - draw something else

Tonybot humanoid robot checks the port and corresponds to port 0701

C language to realize mine sweeping

dllexport和dllimport

Detailed explanation of four modes of distributed transaction (Seata)

Puzzle (016.3) is inextricably linked

Dllexport and dllimport
随机推荐
tonybot 人形机器人 首次开机 0630
[combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
Tonybot humanoid robot infrared remote control play 0630
洛谷P5536 【XR-3】核心城市 题解
Tonybot Humanoïde Robot Infrared Remote play 0630
adc128s022 ADC verilog设计实现
Bucket sorting in C language
Common shortcut keys in PCB
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
7-10 stack of hats (25 points) (C language solution)
mmdetection 学习率与batch_size关系
tonybot 人形机器人 红外遥控玩法 0630
Sword finger offer 28 Symmetric binary tree
Adc128s022 ADC Verilog design and Implementation
puzzle(016.4)多米诺效应
Niuke: crossing the river
Several sentences extracted from the book "leather bag"
Zzuli: sum of 1051 square roots
Luogu p3065 [usaco12dec]first! G problem solution
Common commands for getting started with mongodb database