Senin, 29 Juni 2015

C# - How To Hide And Show Password Using C#

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:
 


csharp hide password text

  

csharp display password text

Bagikan

Jangan lewatkan

C# - How To Hide And Show Password Using C#
4/ 5
Oleh

Subscribe via email

Suka dengan artikel di atas? Tambahkan email Anda untuk berlangganan.