How to Create Simple Login Form in VB.NET Without Connecting to Database?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's going on guys this is Madan and welcome to the new video tutorial in this video tutorial I'm going to show you how to create a simple login form in vb.net without going into database that means a static login form that means we are going to provide the value of username and password from our program so let's do it open up visual studio go to file click on new and then click on project and then select visual basic and windows windows form application give the name of your project and then click okay simply expand this form from the toolbox dragon drop some contours before that I'm going to change the background color of this form so this one now you can also change the text of this form so login form and a drag and drop pearl able to label one for username and another for a password yard goods username and here is password and also drag and drop to textbox about the form and one button also now select each control and go to property of each control in since the takes of this level so here goes username here goes password and then bought on login you can also increase the font size of his control so go to font property and there you can see there is a size property you can give the size like two L's and select the text box we are going to change the name of this text box so that we can remember while writing the core you now double-click this login button we are going to write the code so define some variable deem user name 8 string deme pass or it's string now we are going to take the either input so the username is equal to txt user dot takes and Easter that user interval in username variable and then password is equal to txt pass dot txt now we are going to check if username dot equals hit mean and pass or dot equals it mean what we are going to do we are going to display the message to the user saying that login success information there was message box button dot work a message box icon dot information else if the user interviews and when paso do not match the this username and password means airman and airman what we are going to do is we are going to again display the message so you can simply copy this message and paste inside the else part that goes message box icon dot your and we need to change the masses here words here or simply save it and run your program admin here mean mess is a display login success if you enter a username and password other than admin and admin message to display here there you go you can also do these simple login form by writing a single line of course so let me comment these all section and in the if at what you can write is if txt user dot text dot equals your goes admin and txt Pass dot txt dot equals it mean then display this message else this message so save it again run it it mean it mean and then click log message display login success if you enter the username and password other than the admin and admin message to display here again here you can do one more thing instead of using this equal function what you can do is if txt user dot text equals admin and txt user dot txt is equal to admin you can display this message so there are variety of way that you can do this simple login form I show you all the matter logging success log in Peter so that's it in this video tutorial guys if you like this video share this video with your friends so that they can know about this tutorial and give thumbs up which really motivates us to create such programming video and these stay connected with this channel in order to Eastern connected with this channel you need to subscribe this channel so subscribe this channel and thank you once again for watching this video I will see you in the next video tutorial until that time have a good day bye bye
Info
Channel: RunCodes
Views: 60,297
Rating: undefined out of 5
Keywords: simple login form in vb, vb simple login form, simple login form in vb.net, simple login window in vb, simple login window in vb.net, login form in vb without using database, simple login form in vb without connecting to database, simple vb login form, vb login form without using database, login form in vb, vb login form, login windows in vb, vb login window, vb login form source code, vb login form code, login form in vb code, code to login in vb.net, login code in vb, ranbk
Id: mmYu-y_nCFg
Channel Id: undefined
Length: 6min 59sec (419 seconds)
Published: Mon Oct 21 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.