VB2008/2010 creating a login app

Hello All !
In this tutorial I'll teach you how you can create a form that requires a password to activate it.
 

Requirements:

*Windows
*Internet connection
*Visual Basic 2008 or above

 

Tutorial:

 

Ok, First we begin by creating a new windows form application.

And Call it "Login Application" and press enter

 

Change the form properties to your needs.

Now add 2 labels, 2 textboxes and 2 buttons:

 

Click the login button twice and enter the following codes:

 

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        If TextBox1.Text = "YourUserName" Then

            If TextBox2.Text = "YourPassword" Then

                Form2.Show()

                Me.Visible = False

            End If

        End If

    End Sub

Now add a new windows form

  The new windows form will be called Form2 .

 

Form2 will then be your actual program after the user has logged in.

Source Codes:
Login Application.rar (64 kB)


Topic: VB2008/2010 creating a login app

Date: 30/08/2012

By: Emmanuel segun

Subject: Nigeria

I love what did with the vb code thank but am new to vb.net
emitty101@gmail.com please help me as your student

Reply

—————

Date: 09/08/2012

By: hf

Subject: 675

didnt work actually test it befor you post it

Reply

—————

Date: 30/04/2012

By: Lymatim

Subject: login app works

hey thanks man, this actually worked, had to change a few things around, but you came the the closest to anything that I could find on the web. And please note that this works for regular applications as well!!

Reply

—————

Date: 10/04/2012

By: Aamir

Subject: bad

didn't work

Reply

—————

Date: 11/06/2012

By: khan

Subject: ya

yo are right it is not working
you people waste our time

Reply

—————

Date: 10/04/2012

By: Read more: https://www.vsprogramming.com/vb2008-2010-creating-a-login-app/ Create your own website for free: https://www.webnode.com

Subject: Read more: https://www.vsprogramming.com/vb2008-2010-creating-a-login-app/ Create your own website for free: https://www.webnode.com

bad

Reply

—————