C# - How To Hide And Display Password Text Using C#
In This C# Tutorial We Will See How To Show And Hide Password Text In TextBox With A CheckBox Using CSharp Programming Language .
Project Source Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Project
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
textBox1.UseSystemPasswordChar = false;
}
else
{
textBox1.UseSystemPasswordChar = true;
}
}
}
}///////////////OUTPUT:
Bagikan
C# - How To Hide And Show Password Using C#
4/
5
Oleh
insurance