new query pegan esto : create database registro3 use registro3 create table users( id varchar(10) not null, nom varchar(30) not null, email varchar(50) not null, pass varchar(20) not null, constraint pk_users primary key(id) ) create procedure alta_users( @id varchar(20), @nom varchar(30), @email varchar(50), @pass varchar(20) ) as insert into users values (@id,@nom,@email,@pass) go create procedure ver_users( @id varchar(20) ) as select * from users where id=@id go luego abrimos visual studio vrs 2010 recomendable form 1 (login)-------------------------------------------------------- agregamos dos lbl y dos text box y dos botones boton entrar--- Call Me.verificar() --- y el evento verificar sera-- Private Sub verificar() id = tu.Text pass = tc.Text If id = "" Then lm.Visible = True Else lm.Visible = False End If If pass = "" Then lm1.Visible = True Else lm1.Visible = False End If If id <> "" And pass <> "" Then sql = "exec ver_users '" + id + "'" conectar() com = New SqlClient.SqlCommand(sql, conexion) dr = com.ExecuteReader If dr.Read Then If id = dr(0) And pass = dr(3) Then projecto.lbluser.Text = dr(1) projecto.Show() Me.Hide() Else MsgBox("Contrasea incorrecta", MsgBoxStyle.Exclamation, "Acce so Denegado") End If Else MsgBox("Por favor registrese", MsgBoxStyle.Exclamation, "Acceso Denegado") End If End If End Sub -- boton registarr seria -- Me.Hide() registro.Show() -- copiar todo esto debajo del public -- Public conexion As SqlClient.SqlConnection Dim accion As String, id As String, sql As String Dim res As Integer, pass As String Dim com As SqlClient.SqlCommand, dr As SqlClient.SqlDataReader Dim da As SqlClient.SqlDataAdapter, cb As SqlClient.SqlCommandBuilder Dim ds As DataSet Public Sub conectar() conexion = New SqlClient.SqlConnection conexion.ConnectionString = ("server=BEN-PC;database=registro3;Integrate d Security=True") conexion.Open() End Sub --- -- -- crear registro------------------------------------------------------------------ ----------------- agregamos 4 labels 4 label de mensje 4 texbox dos botones copiar esto debajo del public -- Public conexion As SqlClient.SqlConnection Dim accion As String, id As String, sql As String Dim res As Integer, nom, email, pass As String Dim com As SqlClient.SqlCommand, dr As SqlClient.SqlDataReader Dim da As SqlClient.SqlDataAdapter, cb As SqlClient.SqlCommandBuilder Dim ds As DataSet Public Sub conectar() conexion = New SqlClient.SqlConnection conexion.ConnectionString = ("server=BEN-PC;database=registro3;Integrate d Security=True") conexion.Open() End Sub -- boton cancelar -- Me.Close() Form1.Show() -- boton registrar -- Call Me.verificar() -- para el eevento verificar copiamos esto -- Private Sub verificar() If tid.Text = "" Then m1.Visible = True Else m1.Visible = False End If If tnom.Text = "" Then m2.Visible = True Else m2.Visible = False End If If tmail.Text = "" Then m3.Visible = True Else m3.Visible = False End If If tcon.Text = "" Then m4.Visible = True Else m4.Visible = False End If If tid.Text <> "" And tnom.Text <> "" And tmail.Text <> "" And tcon.Text <> "" Then Call Me.register() Me.Hide() Form1.Show() End If End Sub -- y necesitaras un evento mas el evento registrar ya que el evento verificar solicita un evento registrar aqui el codigo copialo como esta debajo de cualkie end sub -- Private Sub register() id = tid.Text nom = tnom.Text email = tmail.Text pass = tcon.Text sql = "exec ver_users '" + id + "'" conectar() com = New SqlClient.SqlCommand(sql, conexion) dr = com.ExecuteReader If dr.Read Then MessageBox.Show("El ID ya esta registrado", "users", MessageBoxButto ns.OK, MessageBoxIcon.Error) dr.Close() conexion.Close() Else sql = "exec alta_users" + "'" + id + "','" + nom + "','" + email + " ','" + pass + "'" conectar() com = New SqlClient.SqlCommand(sql, conexion) res = com.ExecuteNonQuery conexion.Close() MsgBox("Felicidades ya puede logearse", MsgBoxStyle.Information, "Da tos guardados exitosamente") End If End Sub -- ahora despues de registrar muestra recien el proyecto a desarrollar que en este caso no agrege contenido solo agrege un label para identificar al usuario que entro por su nombre espero te haya gustado mas info sobre mi mi fb es benjamin quispe ramos edad 17 estudio en unitek grupo utp peru 3 ciclo de computacion e informatica