How to Create Complete Login and Registration System (Multiple Accounts) in C# 2020 | C# Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi guys welcome back to iweb makers today let's see how to create a complete user registration system is c sharp today in this video let's see how to create a modern ui design complete user registration system in c sharp after creating this solution you will find this interface to login click this create account to register a new account now enter the username and then the password [Music] click show password to display the password i will enter an unmatching password to show how the validations work now i will enter data to all three fields then click clear now i will enter the correct data [Music] then press register now the account has been created let's go ahead and log in [Music] hit that subscribe button for more videos like this now let's go ahead and create it now open visual studio [Music] then start a new project even you can continue with your own one select windows form application i will change the project name into login and registration system then press ok now select a form to change its properties follow as i do [Music] [Music] [Music] now drag a label to the form and follow its properties [Music] now drag another label to the form and follow its properties [Music] now drag a text box to the form and follow its properties [Music] [Music] make it hurt [Music] [Music] bye [Music] will be the registration button [Music] now copy the registration button by pressing the control button and change its properties as done this button will be the clear fields button [Music] now drag a label to the form and change its properties as done [Music] [Music] align the elements to center as done then select the elements and copy them [Music] now let's create another form to login so add a new windows form and name it as frm login [Music] after creating the form simply change this form properties as done [Music] all right now paste the elements which we copied earlier now create the fields as done [Music] save the database [Music] i will add a sample data and go to file then select save as save as access 2002-2003 database type and save to the path where the database was saved early [Music] then close ms access now back to visual studio don't forget to enter this line of code atop [Music] [Music] at this point we connect the database to our system this must be done without any mistakes if not it will lead to an error and if you are confused don't forget to check the project files link given in the description [Music] [Music] double-click the register button first we'll create a validation to deny empty text fields with a message box [Music] [Music] another validation to check whether the passwords are matching or not [Music] these three lines of code must be placed at the start of the program and out of any methods make sure you replace those correctly now here comes the main codes these codes work to send user credentials to the database we created [Music] [Music] make it hurt [Music] [Music] double click the check box to write some code which toggles the password visibility [Music] the password bullet character can be typed by pressing alt and number seven simultaneously on your keyboard [Music] search for password char in the properties and type the bullet using alt key doing this will make the passwords masked in bullets [Music] these three lines sets the text field to empty [Music] and now copy those it can be used in clear button though double-click the clear button then paste it [Music] finally the registration part is completed now add these lines to navigate to your login page [Music] now we have completed the registration part let's start the login process same validation codes will be used in login except the names okay now let's go to the code view and start coding as done before first import the class now let's go to the previous registration form code and copy the database linking code as done then paste it here after the initialize components now go to the design view and double-click the button to code follow all the coding as i do else the program won't run properly now let's have a condition to check whether the username and password match if it matches let's open a new form so i will create a new windows form these can be your main menu or dashboard if you're interested in creating a dashboard i have done two videos on it i will link them from here now go back the coding let's write a code to open the new form if the credentials are correct [Music] now let's code a message box to display if the entered credentials are incorrect [Music] after the message box let's reset the text boxes [Music] now go to the design view and select the clear button now copy this three lines of code and paste it here [Music] double-click the check box to write some code which toggles the password visibility you can easily copy the previous code which we done in the registration form and change the text box names [Music] [Music] select the create account label and follow the code to navigate to registration form [Music] you can download the project file from our website link in the description finally don't forget to change the password char property then we are done with the program if the video is useful a sub to the channel would be appreciated thanks for watching see you guys in the next one [Music] you
Info
Channel: CodeCraks
Views: 186,469
Rating: undefined out of 5
Keywords: tutorial, visualstudio, login, form, c#, csharp, modern, flat, design, howto, how, best, 2015, How to Make Modern Login Form in C# (2020), 2020, window, morden, how to, make, simple, Tutorial in Visual Studio WinForm Application, Visual Studio, WinForm, Application, Modern User Login Form Material Design Tutorial #2 in Windows Form Application C#, latest, Login Form in C#-Modern Ui Designing, flat design, Login, Registration, Multiple Accounts, System, How to Create Complete Login and Registration System
Id: IzpnHUo6iAI
Channel Id: undefined
Length: 23min 1sec (1381 seconds)
Published: Wed Dec 23 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.