Professional Documents
Culture Documents
Creacion Login en VB
Creacion Login en VB
Creacion Login en VB
Use tester11
Diseños
Agregar otro form para el menu
End Sub
_________________________________________________________________________
_________________________________________________________________________
Login vb OK
Imports System.Data.SqlClient
Imports System.Data.SqlClient.SqlCommand
_________________________________________________________________________
DOBLE CLICK AL BOTON1 “BTNACEPTAR”
Try
conn.Open()
Dim cmd As New SqlCommand("Select * from TBL_USUARIO where USUARIO='" &
Me.TextBox1.Text & "'" & " and Clave='" & Me.TextBox2.Text & "'", conn)
dr = cmd.ExecuteReader
If (dr.HasRows = True) Then
MessageBox.Show("BIENVENIDO A NUESTRO SISTEMA ESCOLAR")
Me.Hide()
FOrmMENU.Show()
End Sub
End Class
_________________________________________________________________________
CASO? IMPRIME