Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Practica#4

Practica#4

Ratings: (0)|Views: 1|Likes:
Published by Ada Pl

More info:

Published by: Ada Pl on Mar 30, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/30/2011

pdf

text

original

 
Colegio Nacional de Educación Profesional Técnica del Estado deChihuahuaElaboración y Mantenimiento de Sistemas de la InformaciónPractica#4Interfaz y PantallasJesús Manuel SilvaGrupo: 6101-I Matricula: 080260779-6 
 
Objetivo:
concluir con el diseño del sistema
Material:
Acces
Visual Basic
Desarrollo:
1. Terminar con la programación2. Diseño de pantallas3. Dimensiones de formularios4. Colores, fuentes, textos5. Títulos de formularios
Código
Registro
Public ClassRegistro  DimdtAs NewDataTable  DimcnAs New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\Sistema\Sistema\Sistema.mdb") Private SubRegistro_Load(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)Handles MyBase.Load  If(x = 2)Then Label1.Text = ("Welcome to the registration of a newaccount")Label2.Text = ("Name")Label3.Text = ("Last name")Label4.Text = ("Mother's maiden name")Label5.Text = ("Address")Label6.Text = ("Birth date")Label7.Text = ("Account Name")Label8.Text = ("Password")Button1.Text = ("Register") Else End If  End Sub  Private SubButton1_Click(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)HandlesButton1.Clickcn.Open()dt.Reset()
 
 DimGuardarDatosAs String="Insert Into NuevosRegistros(Nombre,ApellidgoM,ApellidgoP,Domicilio,FechaNac,NombreCuenta,Contraseña)"&" Values ('"& TextBox1.Text &"','"& TextBox2.Text & "', '"& TextBox3.Text &"','"& TextBox4.Text &"','"& TextBox5.Text & "','"& TextBox6.Text &"','"& TextBox7.Text &"')"  DimdataAdapterAs NewOleDb.OleDbDataAdapter(GuardarDatos, cn) dataAdapter.Fill(dt) If(x = 2)Then MsgBox("The account was created correctly") ElseMsgBox("La cuenta se creo correctamente") End If dataAdapter.Dispose()cn.Close() Me.Hide()Conectar.Show() End Sub End Class
Conectar 
Public ClassConectar  DimcnAs New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\Sistema\Sistema\Sistema.mdb") Dimf, x, c, n DimdtAs NewDataTable  Private SubButton3_Click(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)HandlesButton3.Click Me.Hide()Usuario.Show() End Sub  Private SubButton2_Click(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)HandlesButton2.Click Me.Hide()Registro.Show() End Sub  Private SubConectar_Load(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)Handles MyBase.Load  If(x = 2)Then Label1.Text = ("Please login your username and password")Label2.Text = ("Name")Label3.Text = ("Password")Button1.Text = ("Login")Button2.Text = ("Add new administrator")Button3.Text = ("User login")Button4.Text = ("Exit") Else End If  End Sub  Private SubButton4_Click(ByValsenderAsSystem.Object,ByValeAs System.EventArgs)HandlesButton4.Click Me.Close() End Sub

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->