They so nice to see you
my name is Vikram welcome to another video if this is your first visit to my channel searching for solutions start now by
That subscribe button below and don't forget to click on the bell icon
Let's dive into the topic
Open visual studio 2010 were intimate click on new project
Select visual basic click on windows form application
Type your project name
Click OK
now let us design the farm
Am using two buttons
Take two labels
Take two text boxes
As this is a short video I am going to speed up the video
Lable now you have to rename the label one as user name
label two as
Password
Rename the button one has login button two as
Cancel
Click on the text field two and under properties
Look for use system password char you have to make it as true.
The Use of this property
When you when you type the password it will be displayed in the dots
Double click on the cancel button type and enter
Now double click on the login button
Copy this score this code is given in the description. I will explain this code later paste it here
Username and password is Vikram now. Let us run this project
If I give
username and password correctly and click on login button
Login successful
If I if I only give the password and click login it will ask for username
If I only give the username and no password and click on the login button it will ask for password
If I give wrong password and click login invalid password
If I give
The wrong username and correct password and click login invalid username
If I
Leave both as empty and click login. It will ask enter the username and password
Click on cancel
Now this is all about working of our project now. Let us look into logic or code
if textbox1 and textbox 2 is empty that is
Username and password are empty
We will receive message enter the username and password then save
Else If the text box 1 is empty if only the text box 1 is empty, then we'll get the message enter username,
Else if Text box 2 is empty, then we'll get the message enter the password, else
if text box one and text box two
Have a valid username and password then will receive the message as
login successful else will receive the message as
invalid password
This if statement is going to end here and
Else
Will receive message as invalid username?
And this if statement is going to end here
finally
This if statement is going to end here
For more infomation >> Ezra Klein Explains the Importance of Shame to Discipline Politicians - Duration: 3:35. 
For more infomation >> Panda cute,playfully, lovely.Những chú Gấu Trúc tinh nghịch,dể thương nhất thế giới.p8 - Duration: 13:40.
For more infomation >> Lethal Weapon Season 2 Promo "Never Going To Stop Missing You" (SUB ITA) - Duration: 0:31.
For more infomation >> DND pinawi ang pangamba ng Publiko sa pagdedeklara ng Martial Law—SMNINEWSBLAST 9/15/17 - Duration: 33:13. 
For more infomation >> RAIGO - A GALOPE (Prod. Raigo) [Vídeo] - Duration: 2:13.
For more infomation >> Lo que no te cuentan sobre MTG Arena - Duration: 24:19.
For more infomation >> Éviter les éruptions cutanées | La science derrière les lames Gillette | Ingénierie de précision - Duration: 1:53.
For more infomation >> Toyota Pressesprecher "Dirk" rastet vor Freude aus! | Dirk erklärt's - Duration: 2:04. 

For more infomation >> #ReaçãoChilena | Vendo Novelas Brasileiras | La Mirada Chilena 4ª temp - Duration: 13:37.
For more infomation >> சிறு வயதிலேயே இவர்கள் செய்த வேலையை பாருங்கள் | Tamil Cinema News | Tamil Cine Times | Kollywood - Duration: 2:12.
For more infomation >> How to make a qr code for your website or fb page - Duration: 2:00. 


Không có nhận xét nào:
Đăng nhận xét