Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to create a Login Form in VB.Net with CODE
ChannelFunda Of Web ITDescription 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
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.
- Channel
- Funda Of Web IT
- Category
- Education
- Duration
- 9:34
- Published
- November 1, 2019
- Views
- 36,849
- Likes
- 264
Tags
Share
This tutorial in other languages
- FRComment créer un formulaire de connexion en VB.Net avec le CODE
- ESCómo crear un formulario de acceso en VB.Net con CÓDIGO
- PTComo criar um formulário de logon em VB.Net com CÓDIGO
- ITCome creare un Login Form in VB.Net con CODE
- DEWie ein Login-Formular in VB.Net mit CODE erstellen
- NLHoe maak je een Login Form maken in VB.Net met CODE
- RUКак создать Форму входа в VB.Net с КОДОМ
- PLJak utworzyć formularz logowania w VB.Net z kodem
- JACODEとVB.Netでログインフォームを作成する方法
- ARكيفية إنشاء نموذج تسجيل الدخول في VB.Net مع CODE
- HIकोड के साथ VB.Net में एक लॉग इन फार्म बनाने के लिए कैसे
- IDCara membuat Form Login di VB.Net dengan KODE