Creating A Login App. In VB2008/2010
Posted by saad alti
Requirements:
*Windows
*Internet connection
*Visual Basic 2008 or above
*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 .
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.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
Visual Studio
. Follow any responses to this post through RSS. You can leave a response, or trackback from your own site.