A problem with my free login form design with vb code.

Asked By 50 points N/A Posted on -
qa-featured

Hello friends,

A problem with my free login form design with VB code. I got some sample template for a login form design which is composed with visual basic codes.

This is for my department store log in form administrator, and it seems like the password and username didn’t match to each other. Can you share some other VB coding technique for a log in system page?

Thanks and Regards,

Shannon Larry.

SHARE
Answered By 0 points N/A #182937

A problem with my free login form design with vb code.

qa-featured

Hi there,

Here is a sample of simple Login code for Administration,

Private Sub Command1_Click()

If Username.Text = "Admin" And Password.Text = "1234" Then

frmAdmin.Show

Else

MsgBox "INVALID username & password", vbCritical, "ERROR"

End If

End Sub

Private Sub Command2_Click()

Username.Text = ""

Password.Text = ""

End Sub

The private sub command1_click is for entering the username and the password of the admin user or the Login button.

The private sub command2_click is for the cancelling or clearing the words that you have entered or the cancel button.

Hope it helps.

Login/Register to Answer

Related Questions