Перейти к содержимому

Show/Hide in Password Field | C Sharp Winform | Visual Studio 2019 | Code Screens

Scratch Code

0:00 / 0:00

Show/Hide in Password Field | C Sharp Winform | Visual Studio 2019 | Code Screens

59 447 просмотров · 6 лет назад
Scratch Code
301 подписчик
59 447 просмотров · 6 лет назад
This video is about designing a text box which acts as a password field with show and hide options. Source code: using System; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button3_Click(object sender, EventArgs e) { if(textBox2.PasswordChar=='*') { button4.BringToFront(); textBox2.PasswordChar = '\0'; } } private void button4_Click(object sender, EventArgs e) { if (textBox2.PasswordChar == '\0') { button4.BringToFront(); textBox2.PasswordChar = '*'; } } } } Like, Share and Subscribe for more videos. For Icons used in this video --- https://icons8.com/app #csharp #vs2019