C# – How To Hide And Show Password Using C# [ with source code ]

9
3



display and hide text password from textbox in c#

Source Code:

—– Check out my C# Projects ——-

▶ Inventory Management System –

▶ Students Information System –

▶ Contacts Management System –

▶ Hotel Management System –

▶ All My Programming Projects Here –

▶ My Source Code Store Here –

———- C# COURSE ———-

▶ Learn C# And Become A Pro –

————–

visit our blog

subscribe:

C# And Java Programming Books

in this c# tutorial we will see how to show and hide password text from TextBox using checkbox In c#
we are gonna use:
c# programming language
visual studio 2013

subscribe for more tutorials

More C# Tutorials:

Populate DataGridView From DataTable In C#

Add A Row To DataGridView From TextBox In C#

Get Selected Row Values From DataGridView Into TextBox In C#

How To Update Selected DataGridView Row With TextBox Using C#

How To Delete Selected DataGrid Row Using C#

How To Add And Update A Row To DataGridView From TextBox + Delete Row In C#

How To Add InputBox And Use It In C# Using Visual Studio 2013

How To Add A Row To GridView From InputBox In C#

Set Selected Row Values From DataGridView Into InputBox In C#

Update Selected DataGridView Row Using InputBox In C#

How To Add And Update A Row To DataGridView From InputBox In C#

How To Browse Image Into PictureBox Using csharp

How To Populate Datagridview With Images In C#

How To Add Image To DataGridView From PictureBox In C#

How To Get Image From DataGridView To PictureBox In csharp

How To Update DataGridView Cell Image Using PictureBox In csharp

How To Add CheckBox Column To DataGridView In C#

How To Know If DataGridView CheckBoxCell Is Checked In csharp

How To Delete GridView Checked Rows Cell Using csharp

How To Dispaly Datagrid Checked Rows To Another DataGrid

How To Get The Sum Of DataGridView Column Values Using C#

Get The Minimum Value From DataGridView Column Using C#

How To Get The Maximum Value From DataGridView Column Using C#

How To Get The DataGridView Column Average Value Using C#

How To Get The DataGridView Column Max, Min, Sum, Average Value Using C#

How To Export GridView Data To Text File

Export And Import DGV data To XML File

Populate ComboBox Fonts Names

c# regex

Drop Down Menu

Flat Button Style

Rotate Image

Check And unCheck All CheckBox

Show And Hide Password

Drag And Drop Text In From TextBox to another TextBox

Drag And Drop Image

———— COURSES YOU MAY LIKE ————

C# Courses:
Entity Framework Course:
C# WPF Course:
.Net Core Courses:
Full-stack .NET Course:
Xamarin For Mobile Apps:
Web Development Course:
Javascript Courses:
Python Course:
React Course:
PHP Course For Beginners:
Data Science Course:
Machine Learning Courses:

Nguồn:https://wijstaanvooronzegrondrechten.org/

9 COMMENTS

  1. Since both properties are boolean, u could simplify your code using : textBox_Password.UseSystemPassword = !checkBox_Show_Hide.Checked

  2. People who are still stuck make sure to go to your Password Textbox properties and make sure UseSystemPasswordChar is True and you also don't need to put an astrix in PasswordChar
    Also from another comment by Prijavlanje NaSranje do this
    if (ShowPasswordCheckBox.Checked == true)
    {
    passwordTextBox.UseSystemPasswordChar = false;
    }
    else
    {
    passwordTextBox.UseSystemPasswordChar = true;
    }

LEAVE A REPLY

Please enter your comment!
Please enter your name here