Тёмный

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

Scratch Code
Подписаться 283
Просмотров 51 тыс.
50% 1

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 --- icons8.com/app
#csharp #vs2019

Опубликовано:

 

26 апр 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@t.zhxngyu4358
@t.zhxngyu4358 2 года назад
thanks for the code really simple and easy to understand ! this helped me in my project :) thanks alot!
@scratchcode816
@scratchcode816 2 года назад
Welcome😊
@kriskata7653
@kriskata7653 2 года назад
good job buddy. It works without a problem. Thank you so much
@scratchcode816
@scratchcode816 2 года назад
Welcome bro😊😊👍
@anusmalik4202
@anusmalik4202 3 года назад
you doing great work
@scratchcode816
@scratchcode816 3 года назад
Thanks brother😊
@denisegatdula7966
@denisegatdula7966 2 года назад
Thank u!!!
@muuseahmed9535
@muuseahmed9535 3 года назад
Thanks So much
@scratchcode816
@scratchcode816 3 года назад
Welcome bro😊
@divyagade1699
@divyagade1699 2 года назад
Sir I'm using 2015 version of visual studio in that password char property not have so myself getting an error what I do ???
@bribri4044
@bribri4044 2 года назад
nice code :) it helped a lot
@scratchcode816
@scratchcode816 2 года назад
👍👍
@calinuurwarfaa1504
@calinuurwarfaa1504 3 года назад
thank you so much
@scratchcode816
@scratchcode816 3 года назад
Welcome 😊😊
@thehiddenguy655
@thehiddenguy655 2 года назад
Thank You
@scratchcode816
@scratchcode816 2 года назад
👍👍
@uygarkilic1
@uygarkilic1 3 года назад
Looks hot
@scratchcode816
@scratchcode816 3 года назад
Thank you😊😊
@nguyenquyetthang8381
@nguyenquyetthang8381 3 года назад
Thanks your Idie Bro
@scratchcode816
@scratchcode816 3 года назад
😊😊
@SilencePlaysRust
@SilencePlaysRust 3 года назад
help for some reason my hide button wants to be on top of the show button
@scratchcode816
@scratchcode816 3 года назад
Simple brother. Design according to your need and then replace button4.BringToFront( ) to button3.BringToFront( ) in the code.
@who.am.i011
@who.am.i011 3 года назад
Why when I click on the eye, it disappears and doesn't show the eye to encode
@scratchcode816
@scratchcode816 3 года назад
May be you have not used the bring to front method correctly brother. The source code is in the description. Please check your code with it
@ziiqq
@ziiqq 3 года назад
can u put it the the discrip hte code pls
@scratchcode816
@scratchcode816 3 года назад
Are you asking the color codes brother or do you want the source code
@ziiqq
@ziiqq 3 года назад
@@scratchcode816 Source code
@andreboaventura7442
@andreboaventura7442 2 года назад
Help! It stop work when i start typing!
@scratchcode816
@scratchcode816 2 года назад
Source code in description bro. You can cross check with your code. Also close the software once and try running it again.
@sushantsawant4825
@sushantsawant4825 3 года назад
Hii Mera code work kr raha but.... Ek ke upar ke button dala Toh work Nhi hota
@scratchcode816
@scratchcode816 3 года назад
Try using the source code in description bro.
@ziiqq
@ziiqq 3 года назад
Bro plz
@scratchcode816
@scratchcode816 3 года назад
Sure brother👍
@scratchcode816
@scratchcode816 3 года назад
I have updated the source code in the description bro.