HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to create a Login Form in VB.Net with CODE

36,849 views November 1, 2019 9:34

Watch on YouTube
ChannelFunda Of Web IT

Description from the creator

Here.. in this video, we are creating a login form in vb.net with coding, and this login system is like.. wr ppl are registering and from the registered person can do a login. so.. before making login page.. please watch out the registration form in vb.net.

Registration form
youtube.com/watch?v=zlUA458CGUU&t=67s


Dim con As New SqlConnection
Dim cmd As New SqlCommand
con.ConnectionString = "Data Source=(LocalDB)\v11.0;AttachDbFilename=c:\users\ved prakash n\documents\visual studio 2012\Projects\FundaProjectVB\FundaProjectVB\FundaProject.mdf;Integrated Security=True"
Dim objcon As SqlConnection = Nothing
Dim objcmd As SqlCommand = Nothing

Try
objcon = New SqlConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=c:\users\ved prakash n\documents\visual studio 2012\Projects\FundaProjectVB\FundaProjectVB\FundaProject.mdf;Integrated Security=True")
objcon.Open()
Dim stmt As String = "select * from register where email ='" & email.Text & "' AND password ='" & password.Text & "' "
objcmd = New SqlCommand(stmt, objcon)
Dim reader As SqlDataReader = objcmd.ExecuteReader
If reader.Read Then
MessageBox.Show("Login successfully")
Me.Hide()
homepage.Show()
Else
MessageBox.Show("Invalid Login Please Check!")
welcome.Show()
email.Clear()
password.Clear()

End If
Catch ex As Exception
MsgBox("MSSQL ERROR")
End Try

About this tutorial

Funda Of Web IT published this 9:34 video tutorial on November 1, 2019. It has been watched 36,849 times on YouTube.

Category
Education
Duration
9:34
Published
November 1, 2019
Views
36,849
Likes
264

Tags

Share

This tutorial in other languages