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: 10/04/2012
Subject: Read more: https://www.vsprogramming.com/vb2008-2010-creating-a-login-app/ Create your own website for free: https://www.webnode.com
—————