Saturday, 21 January 2012

How to make log in form in vb.net


How to create login form in vb.net?
Step1:
Open Microsoft visual studio.
Step2:
File ànew project àselect the windows form application à rename it as password
Step3:
Drag and drop Button1, two text box, three labels from tool box
Step4:
Double click the button copy the code:
Public Class Form1

    Private SubButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
        If TextBox1.Text = "hemanth"Then
            If TextBox2.Text = "12345"Then
                Label3.Text = "login sucessfull.."
            Else
                Label3.Text = "wrong user namee or password."
            End If
        End If
    End Sub
End Class

Output:


No comments:

Post a Comment