You are on page 1of 93

MI PRIMER CUADERNO DIGITAL DISEADO POR: CRISTINA GANAN

FACULTAD DE CIENCIAS HUMANAS Y DE LA EDUCACION CARRERA DE DOCENCIA EN INFORMATICA

NOMBRE: CRISTINA GANAN AMBATO ECUADOR

Formar profesionales lderes competentes, con visin humanista y pensamiento crtico a travs de la Docencia, la Investigacin y la Vinculacin, que apliquen, promuevan y difundan el conocimiento respondiendo a las necesidades del pas.

La Carrera de Docencia en Informtica de la Facultad de Ciencias Humanas y de la Educacin de la Universidad Tcnica de Ambato por sus niveles de excelencia se constituir como un centro de formacin superior con liderazgo y proyeccin nacional e internacional.

INTRODUCCION Visual Studio es un conjunto completo de herramientas de desarrollo para la generacin de aplicaciones Web ASP.NET, Servicios Web XML, aplicaciones de escritorio y aplicaciones mviles. Visual Basic, Visual C++, Visual C# y Visual J# utilizan el mismo entorno de desarrollo integrado (IDE), que les permite compartir herramientas y facilita la creacin de soluciones en varios lenguajes. Asimismo, dichos lenguajes aprovechan las funciones de .NET

EL EMENTO N.-3

ELEMENTOS:

Se muestra un formulario ya listo para cear una nueva presentacion.

En este formulario presentamos el primer dato insertando un labels con el nombre de universidad tecnica de ambato.

De igual manera vamos insertando los labels de uno en uno.

Inserto los logos de la universidad y de la carrera

Se muestra esta pantalla para importar la imagen como es el logo.

Se muestra la imagen que se va a inserta

Esta imagen muestra la imagen ya insertada en el formulario.

Luego de terminar insertando imgenes nos muestra el programa ya ejecutado de esta manera.

COMO YA LO HEMOS VISTO ESTE PROGRAMA ES UNO DE LOS MAS FACILES NO NECESITA NINGUNA CLASE DE CODIGO.

Public Class Form2 Private Sub cmddatos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddatos.Click ' Form2.Hide() Form1.Show() End Sub

Public Class Form1 Private Sub CmdINGRESAR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdINGRESAR.Click Dim NOMBRE, APELLIDO As String Dim edad As Byte NOMBRE = InputBox("ingrese los nombres") TxtNOMBRE.Text = NOMBRE APELLIDO = InputBox("ingrese apellidos") TxtAPELLIDO.Text = APELLIDO edad = InputBox("ingrese la edad") TxtEDAD.Text = edad MsgBox("mis nombres son" & NOMBRE & " " & APELLIDO & " " & edad) End Sub

CODIGO PARA EL BOTON NUEVO:


Private Sub CmdNUEVO_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdNUEVO.Click TxtAPELLIDO.Text = "" TxtNOMBRE.Text = "" TxtEDAD.Text = "" End Sub

REALICE UN PROGRAMA QUE ME PERMITA VISUALIZAR LAS 4 REGIONRES DEL ECUADOR CON SUS RESPECTIVOS COSTUMBRES,COMIDA,TRADICIONES. ELEMENTOS:
4 comandbutton para las caractersticas de cada regin 4 labels para poner los nombres de las regiones

SE REALIZA ESTA CODIFICACIN PARA IR DEL MENU DE OPCIONES AL FORMULARIO DE LA REGION COSTA.
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' Form2.Hide() Form3.Show() EndSub

CODIFICACION PARA REGRESAR DEL FORMULARIO DE LA REGIN COSTA AL FORMULARIO DEL ME PRINCIPAL
PublicClass Form3 PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Form2.Show() Me.Hide() EndSub ESTE FORMULARIO NOS MUESTRA LA REGIN SIERRA

ESTA CODIFICACION ES PARA REGRESAR LA REGIN SIERRA AL MENU PRINCIPAL.


PublicClass Form4 PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Form2.Show() Me.Hide() EndSub EndClass EN ESTE FORMULARIO NOS MUESTRA LA REGION ORIENTE CON SUS DIFERENTES CARACTERISTICAS.

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ' Form2.Hide() Form6.Show() End Sub NOS MUETRA LA PANTALLA DE LA REGIN GALAPAGOS

Public Class Form7 Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Form2.Show() Me.Hide() End Sub End Class

Text: NOMBRE. Text: MODULO. Text: DEBERES. Text: LECCIONES. Text: EXAMENES. Text: PROMEDIO. Text: EQUIVALENCIA. Enabled: True Enabled: True Name: NUEVO(COMANDBUTTON) Name: SALIR(COMANDBUTTON)

PROCEDO A INGRESAR LOS DATOS PERSONALES EN EL PROGRAMA YA EJECUTADO.

COODIFICACION: TXT(DEBERES)
Private Sub txtdeberes_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtdeberes.TextChanged //VALIDACION DE DATOS If Val(txtdeberes.Text) > 10 Then txtdeberes.Text = "" Else txtpromedio.Text = Format((Val(txtdeberes.Text) + Val(txtlecciones.Text) + Val(txtexamen.Text)) / 3, "##.00") End If //EQUIVALENCIA DEPENDIENDO DEL PROMEDIO If Val(txtpromedio.Text) >= 7 Then txtequiv.Text = "APROBADO"

ElseIf Val(txtpromedio.Text) > 5 & Val(txtpromedio.Text) < 7 Then

txtequiv.Text = "SUSPENSO" Else txtequiv.Text = "REPROBADO" End If End Sub TXT(LECCIONES)

Private Sub txtlecciones_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtlecciones.TextChanged //VALIDACION DE DATOS If Val(txtdeberes.Text) > 10 Then txtdeberes.Text = "" Else txtpromedio.Text = Format((Val(txtdeberes.Text) + Val(txtlecciones.Text) + Val(txtexamen.Text)) / 3, "##.00") End If //EQUIVALENCIA DEPENDIENDO DEL PROMEDIO

If Val(txtpromedio.Text) >= 7 Then txtequiv.Text = "APROBADO" ElseIf Val(txtpromedio.Text) > 5 & Val(txtpromedio.Text) < 7 Then txtequiv.Text = "SUSPENSO" Else txtequiv.Text = "REPROBADO" End If End Sub Private Sub txtexamen_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtexamen.Click End Sub TXT(EXAMAMEN) Private Sub txtexamen_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtexamen.TextChanged

//VALIDACION DE DATOS If Val(txtdeberes.Text) > 10 Then txtdeberes.Text = "" Else txtpromedio.Text = Format((Val(txtdeberes.Text) + Val(txtlecciones.Text) + Val(txtexamen.Text)) / 3, "##.00") End If

//EQUIVALENCIA DEPENDIENDO DEL PROMEDIO If Val(txtpromedio.Text) >= 7 Then txtequiv.Text = "APROBADO"

ElseIf Val(txtpromedio.Text) > 5 & Val(txtpromedio.Text) < 7 Then

txtequiv.Text = "SUSPENSO" Else txtequiv.Text = "REPROBADO" End If End Sub

CMD(NUEVO)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = "" TextBox2.Text = "" txtdeberes.Text = "" End Sub txtlecciones.Text = "" txtexamen.Text = "" txtequiv.Text = "" txtpromedio.Text = ""

CMD(SALIR)
Private Sub salir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles salir.Click End End Sub End Class

Name Form1 Backcolor (A su gusto) Windowstate Maximize BUTTON Name Command 1 Backcolor (A su gusto) Name Command 2 Backcolor (A su gusto) Caption Serie de datos Name Command 3 Caption Salir LABEL Cantidad 3 Name Label1 Caption Tablas Name Label2 Caption Ingrese el factor Name Label1 FORM 3 Name Form3 Windowstate Maximize
Caption Ingrese el Limite

LABEL Cantidad 1 Caption Tablas de Multiplicar FORM 2 Windowstate Maximize BUTTON Cantidad 3 Name Command 1 Caption Generar Name Command 2 Caption Regresar Name Command 3 Caption Nuevo
Cantidad 5 Name Command 1 Text Fibonacci Name Command 2 Text Factorial Name Command 3 Text Primos Name Command 4 Text Salir Name Command 5 Text Limpiar

REALIZO LA CODIFICACION PARA IR DEL FORMULARIO DE MENU DE OPCIONES AL FORMULARIO DE LA TABLA DE MULTIPLICAR.
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form2.Show() End Sub

REALICE LA CODIFICACION DE LAS TABLAS DE MULTIPLICAR


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim ml As Integer For INICIO = 1 To Val(TextBox2.Text) Step 1 ml = Val(TextBox1.Text) * INICIO ListBox1.Items.Add(INICIO & "*" & Val(TextBox1.Text) & "=" & ml) Next End Sub

FORMULARIO PARA IR DE SERIE DE DATOS AL FORMULARIO YA EJECUTADO. COODIFICACION PARA REALIZAR EL CALCULO DE FIBONACI
Public Class Form3

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim fib As Integer Dim a As Integer = 1 Dim b As Integer = 0 Dim c As Integer = 0 Dim contador As Integer = 0 For INICIO = 1 To Val(txtlimite.Text) Step 1 b = a a = c c = a + b ListBox1.Items.Add(c) Next End Sub

COODIFICACION PARA EL FACTORIAL


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim x, fac As Integer x = txtlimite.Text fac = 1 For INICIO = x To 1 Step -1 fac = fac * INICIO Next ListBox2.Items.Add(fac) End Sub CODIFICACION PARA LOS NUMEROS PRIMOS Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim compro As Boolean = True Dim numero As Integer For numero = 1 To Val(txtlimite.Text) * 2 compro = True For INICIO = 2 To numero - 1 If numero Mod INICIO = 0 Then compro = False End If Next If compro = True Then ListBox3.Items.Add(numero)

End If Next End Sub UNA DE LAS OPCIONES ES EL FIBONACI

SE PUEDE ELEGIR FACTORIAL O PRIMOS.

Realice un programa que me permita encontrar una proforma de vinos y licores ingresando a su gusto las caractersticas e imgenes de cada vino o licor ELEMENTOS: TEXTBOX Cantidad 5 Name Text1 Name Text2 Text (Vaco) P.UNITARIO) Name Text3 Text (Vaco) SUB.TOTAL Name Text Font Text4 (Vaco) IVA(A su gusto) (A su gusto)

Caption Caption Caption Caption Caption Caption Caption Caption

CANTIDAD P.UNITARIO SUB.TOTAL FORMAS DE PAGO +15% DE RECARGO -20% DE DESCUENTO IVA) T.A PAGAR

COMBOBOX Cantidad 1 Name BomboBox CHECKBOX 2 CheckBox1 +15% DE RECARGO CheckBox2

Cantidad Nombre Caption Nombre

Forecolor (A su gusto) Font (A su gusto) Caption -20% DE DESCUENTO PICTUREBOX Cantidad Forecolor Modo De Tamao 1 (A su gusto) (A Su Gusto)

REALIZAMOS EL SIGUIENTE CODIGO: COMBOBOX


Public Class Form1 Dim datos As Integer Dim datos1 As Double Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged datos = ComboBox1.SelectedIndex If datos = 0 Then Txtprecio.Text = Val("180.85") datos1 = Txtprecio.Text ElseIf datos = 1 Then Txtprecio.Text = Val("99.00") datos1 = Txtprecio.Text ElseIf datos = 2 Then Txtprecio.Text = Val("130.99") datos1 = Txtprecio.Text ElseIf datos = 3 Then Txtprecio.Text = Val("90.99") datos1 = Txtprecio.Text End If End Sub

(TXT CANTIDAD)
Private Sub Txtcantidad_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcantidad.TextChanged Txttotal.Text = Format(Val(txtcantidad.Text) * Val(Txtprecio.Text), "##.00") Txtiva.Text = Format(Val(Txttotal.Text * 0.12), "##.00") Txtpagar.Text = Format(Val(Txttotal.Text) + Val(Txtiva.Text), "##.00") End Sub CHECKBOX1(ACTIVA Y DESACTIVA) Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged

If CheckBox1.Checked = True Then CheckBox2.Enabled = False End If If CheckBox1.Checked = False Then CheckBox2.Enabled = True CheckBox2.Enabled = False End If End Sub

Disee una aplicacin utilizando los nmeros randomicos


En este programa veremos cmo manejar nmeros randomicos para lo cual realizaremos un proyecto llamado casino En este proyecto utilizamos algunos objetos como: 4 LABEL Label1 Ttulo principal (Casino) 2 BUTTON Button 1 Para el botn Jugar (cmdjugar) Button 2 Para el botn salir (cmdsalir) 2 PICTUREBOX Picturebox1 Utilizaremos para agregar la primera imagen PictureBox2 Utilizaremos para agregar la segunda imagen Esta codificacin est hecha en el botn jugar
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim n1 As Byte Dim n2 As Byte Dim n3 As Byte Randomize()

Do n1 = Int(Rnd() * 10) n2 = Int(Rnd() * 10) n3 = Int(Rnd() * 10) Loop While (n1 > 1) And (n1 <= 6) Label2.Text = n1 Label3.Text = n2 Label4.Text = n3 If (Label2.Text = Label3.Text) And (Label2.Text = Label4.Text) Then PictureBox1.Visible = True PictureBox2.Visible = False MsgBox("Felicidades Ganaste") Else PictureBox2.Visible = True PictureBox1.Visible = False MsgBox("Fallaste Intentalo nuevamente") End If End Sub End Class

Inserto 3 labels en donde que me permita ingresar 3 valores que se vayan apareciendo aleatoriamente.

CODIFICACION:

Esta codificacin est hecha en el salir


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub

DES ESTA MANERA SE REALUZA LOS NUMEROS RANDOMICOS.

Disee una aplicacin que me permita conocer y obtener informacin de los planetas del sistema solar. Primeramente debemos crear una aplicacin de Windows Forms El Sistema Solar, vamos a agregarle una primera pantalla de presentacin con distintos botones o labels que nos vinculan a los otros formularios: UTILIZAREMOS:

label 1:nuestro sistema solar label 2:elegir planeta 1 COMBOBOX utilizaremos el COMBOBOX para insertar la lista de planetas 1 TEXT BOX informacin relevante a cada planeta 2 PICTURE BOX Insertamos una imagen List.

CODIFICACION:
Public Class Form1

Private

Sub

Form1_Load(ByVal

sender

As

System.Object,

ByVal e As System.EventArgs) Handles MyBase.Load ComboBox1.Items.Add("MERCURIO") ComboBox1.Items.Add("TIERRA") ComboBox1.Items.Add("JUPITER") ComboBox1.Items.Add("SATURNO") ComboBox1.Items.Add("URANO") ComboBox1.Items.Add("NEPTUNO")

End Sub

DE ESTA MANERA SE ELIJE EL PLANTA QUE QUERAMOS Y NOS MUESTRA LA IMAGEN.

REALICE UN PROGRAMA QUE ME PERMITE VISUALIZAR LAS TABLAS DE MULTIPLICAR INGRESANDO EL FACTOR Y EL LIMITE INSERTA: 3 COMANDBUTTON PARA REALIZAR EL CODIFICADO DE LA GENERACION DE LA TABLA DE MLTIPLICAR Y LA OPCION NUEVO..

. INSERTO UN LISTBOX PARA QUE SE VISUALICE EL RESULTADO DE LA MULTIPLICACION.

DAR CLIC EN GENERAR PARA GENERRA EL PROCESO DE LA MULTIPLICACION


Private Sub cmdgenerar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdgenerar.Click Dim INICIO As Integer Dim MULT As Integer For INICIO = 1 To Val(TextBox2.Text) Step 1 MULT = Val(Txtfactor.Text) * INICIO ListBox1.Items.Add(INICIO & "*" & Val(Txtfactor.Text) & " = " & MULT) Next End Sub

DE IGUAL MANERA SE COODIFICA EN EL BOTON DE NUEVO.


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Txtfactor.SelectionStart = 0 Txtfactor.Focus() Txtfactor.Text = " " TextBox2.SelectionStart = 0 TextBox2.Focus() TextBox2.Text = " " ListBox1.Focus() ListBox1.Text = " " End Sub

LUEGO DE HABER TERMINADO DE CODIFICAR REALIZO LA EJECUCIN INGRESANDO EL FACTOR Y EL LIMITEY DAR CLIC EN GENERAR NOS MUESTRA LOS RESULTADOS EN EL CUADRO DE LISTBOX .

DE ESTA MANERA GENERAMOS LA TABLA DE MULTIPLICAR LAS VECES QUE DESEAMOS INGRESANDO POR LA OPCION NUEVO.

Disee un proyecto que permita calcular la planilla de Luz elctrica segn los siguientes condicionamientos. Valide el ingreso de los datos en las cajas de texto de tal manera que solo permita el ingreso de nmeros Valide los datos de la Lectura anterior y la Lectura actual de tal manera que la lectura actual es siempre mayor que la lectura anterior Se ingresan solo las lecturas anterior y actual y se genera automticamente el Total a Pagar Proponga su propio diseo La aplicacin se genera n veces segn lo decida el usuario Programe todos los botones que considere necesarios DESCRIPCIN Este programa nos permite calcular el valor de consumo de luz elctrica segn los watts consumidos y los recargos por alumbrado pblico, bomberos, y basura.

14 Label Label 1 = EMPRESA ELECTRICA Label 2 = Fecha Label 3 = # Cuenta Label 4 = Factura Label 5 = Cliente Label 6 = Lectura actual Label 7 = Lectura anterior Label 8 = Wat Label 9 = RECARGOS Label 10 = 3% Alumbrado P. Label 11 = 4% Bomberos Label 12 = 5% Basura Label 13 = Total Label 14 = Costo 12 Text Box Text Box 1 para la fecha. Text Box 2 para el # de Cuenta. Text Box 3 para la factura. Text Box 4 = txtcliente Text Box 5 = txtanterior Text Box 6 = txtactual Text Box 7 = txtconsumo Text Box 8 = txtacosto Text Box 9 = txtalumbrado Text Box 10 = txtbomberos Text Box 11 = txtbasura Text Box 12 = txttotal

PROGRAMA YA CORRIDO SE ENCUENTRA DE ESTA MANERA.

Public Class Form1

Para validar los datos, ingresar solo letras para el cliente.


Private Sub txtcliente_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtcliente.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False ElseIf Char.IsSeparator(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub

Para validar el ingreso de datos, que la lectura siempre sea mayor a la anterior.
Private Sub txtactual_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtactual.Click If Val(txtactual.Text) > Val(txtanterior.Text) Then txtconsumo.Text = Val(txtactual.Text) - Val(txtanterior.Text) Else txtactual.Clear()

txtactual.Focus() End If

Para calcular el costo de consumo y calcular el total a pagar adicionando los recargos .
txtcosto.Text = Val(txtconsumo.Text) * 0.09 txtalumbrado.Text = Val(txtcosto.Text) * 0.03 txtbomberos.Text = Val(txtcosto.Text) * 0.04 txtbasura.Text = Val(txtcosto.Text) * 0.05 txttotal.Text = Val(txtcosto.Text) + Val(txtalumbrado.Text) + Val(txtbomberos.Text) + Val(txtbasura.Text) End Sub

Para validar los datos, ingresar solo nmeros para la lectura actual.
Private Sub txtactual_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtactual.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub

Para validar los datos, ingresar solo nmeros para la lectura anterior.
Private Sub txtanterior_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtanterior.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub

Para validar los datos, ingresar solo nmeros para el # de cuenta.


Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub

Para validar los datos, ingresar solo nmeros para la factura.


Private Sub TextBox3_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox3.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False

Else e.Handled = True End If End Sub

Realice un proghrama que me permita realizar un rol de pagos con sus respectivo datos personales.
Public Class Form1 Dim salarioNominal, valorIESS, valorHExtras, subsidioFamiliar, descMultas, netoRecibir, prestamo As Double Dim salarioBasico As Double = 292 Dim ingresos, egresos As Double

Private Sub cbxCargo_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CBXCARGO.SelectedIndexChanged Dim cargo As Integer cargo = CBXCARGO.SelectedIndex 'Averiguo la posicion del Item seleccionado 'Cargo los salarios Nominales Select Case cargo Case 0 salarioNominal = 350D Case 1 salarioNominal = 500D Case 2 salarioNominal = 700D End Select valorIESS = salarioNominal * 0.115D ingresos = salarioNominal egresos = valorIESS txtiess.Text = valorIESS.ToString() txtsalario.Text = salarioNominal.ToString() txtingresos.Text = ingresos.ToString() txtegresos.Text = egresos.ToString() 'CAlculo del neto a recibir netoRecibir = ingresos - egresos txttotal.Text = netoRecibir.ToString() End Sub

Valor del prestamo


Private Sub txtValorPrestamo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Txtprestamoos.TextChanged prestamo = Convert.ToDouble(Txtprestamoos.Text) egresos = prestamo + valorIESS + descMultas txtegresos.Text = egresos.ToString() 'CAlculo del neto a recibir netoRecibir = ingresos - egresos txttotal.Text = netoRecibir.ToString() End Sub Private Sub txtNumMultas_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtnmultas.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled = False ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = True End If End Sub

1.-Elaborar un programa que me permita realizar el ingreso de los datos de un estudiante al sistema de matriculas, donde se me detalle los colegios y el tipo fiscal o particular, y se me visualice el valor de la matricula, servicio medico, internet y recreacin, y el valor total a pagar. Descripcin del ejercicio En este ejercicio para el sistema de matrcula se desea ingresar los datos del estudiante y poder seleccionar un colegio y el tipo ya sea fiscal, particular o fiscomisional. Tambin se bloquea los textbox donde se nos visualiza los valores de los seguros y el total.

ELEMENTOS
1splitContainer 15 label Label1=sistema de recaudacin Label2=datos personales Label3=nombre Label4=apellido Label5=cedula Label6=direccion Label7=telefono Label8=datos de matricula Label9=valor matricula Label10=servicio medico Label11=servicio internet Label12=servicio recreacion Label13=total a pagar Label14=tipo Label15=colegio 10 textbox Textbox1=txtnombre

Textbox2=txtapellido Textbox3=txtcedula Textbox4=txtdireccion Textbox5=txttelefono Textbox6= txtvmatricula Textbox7= txtsmedico

Textbox8= txtsinternet
Textbox9= txtsrecreacion Textbox10= txttotal 2 button Button1=salir Button2=nuevo 2 Combobox

Combobox1=cmbcolegio
Combobox1=cmbtipo

Public Class Form1 Dim dato As Integer Private Sub NOMBRE_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtNOMBRE.KeyPress If Char.IsNumber(e.KeyChar) Then e.Handled = True MsgBox("NO DATOS NUMERICOS") txtNOMBRE.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub APELLIDO_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAPELLIDO.KeyPress If Char.IsNumber(e.KeyChar) Then e.Handled = True MsgBox("NO DATOS NUMERICOS") txtAPELLIDO.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub CEDULA_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCEDULA.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtCEDULA.Focus() ElseIf Char.IsControl(e.KeyChar) Then

Private Sub CEDULA_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCEDULA.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtCEDULA.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub TELEFONO_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTELEFONO.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtTELEFONO.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub VMATRICULA_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtVMATRICULA.TextChanged End Sub Private Sub TIPO_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbTIPO.SelectedIndexChanged dato = cmbTIPO.SelectedIndex If dato = 0 Then txtVMATRICULA.Text = "250" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.12), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 1 Then txtVMATRICULA.Text = "120" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.06), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 2 Then txtVMATRICULA.Text = "180" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##, 00")

txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.11), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbTIPO.Items.Add("PARTICULAR") cmbTIPO.Items.Add("FISCAL") cmbTIPO.Items.Add("FISCOMISIONAL") cmbCOLEGIO.Items.Add("HISPANO AMRICA") cmbCOLEGIO.Items.Add("GUAYAQUIL") cmbCOLEGIO.Items.Add("BOLIVAR") cmbCOLEGIO.Items.Add("LA SALLE") cmbCOLEGIO.Items.Add("TIRSO DE MOLINA") cmbCOLEGIO.Items.Add("ADVENTISTA") cmbCOLEGIO.Items.Add("ATENAS") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click txtNOMBRE.Text = "" txtAPELLIDO.Text = "" txtTELEFONO.Text = "" txtDIRECCIN.Text = "" txtVMATRICULA.Text = "" cmbTIPO.Text = "" cmbCOLEGIO.Text = "" txtSINTERNET.Text = "" txtSMEDICO.Text = "" txtSRECREACION.Text = "" txtTOTAL.Text = "" End Sub End Class e.Handled = False Else e.Handled = False End If End Sub Private Sub TELEFONO_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTELEFONO.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtTELEFONO.Focus() ElseIf Char.IsControl(e.KeyChar) Then

e.Handled = False Else e.Handled = False End If End Sub Private Sub VMATRICULA_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtVMATRICULA.TextChanged End Sub Private Sub TIPO_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbTIPO.SelectedIndexChanged dato = cmbTIPO.SelectedIndex If dato = 0 Then txtVMATRICULA.Text = "250" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.12), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 1 Then txtVMATRICULA.Text = "120" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.06), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 2 Then txtVMATRICULA.Text = "180" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.11), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbTIPO.Items.Add("PARTICULAR") cmbTIPO.Items.Add("FISCAL") cmbTIPO.Items.Add("FISCOMISIONAL") cmbCOLEGIO.Items.Add("HISPANO AMRICA") cmbCOLEGIO.Items.Add("GUAYAQUIL") cmbCOLEGIO.Items.Add("BOLIVAR") cmbCOLEGIO.Items.Add("LA SALLE") cmbCOLEGIO.Items.Add("TIRSO DE MOLINA") cmbCOLEGIO.Items.Add("ADVENTISTA") cmbCOLEGIO.Items.Add("ATENAS") End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click txtNOMBRE.Text = "" txtAPELLIDO.Text = "" txtTELEFONO.Text = "" txtDIRECCIN.Text = "" txtVMATRICULA.Text = "" cmbTIPO.Text = "" cmbCOLEGIO.Text = "" txtSINTERNET.Text = "" txtSMEDICO.Text = "" txtSRECREACION.Text = "" txtTOTAL.Text = "" End Sub End Class Private Sub CEDULA_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCEDULA.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtCEDULA.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub TELEFONO_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTELEFONO.KeyPress If Char.IsLetter(e.KeyChar) Then e.Handled = False MsgBox("SOLO DATOS NUMERICOS") txtTELEFONO.Focus() ElseIf Char.IsControl(e.KeyChar) Then e.Handled = False Else e.Handled = False End If End Sub Private Sub VMATRICULA_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtVMATRICULA.TextChanged End Sub Private Sub TIPO_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbTIPO.SelectedIndexChanged

dato = cmbTIPO.SelectedIndex If dato = 0 Then txtVMATRICULA.Text = "250" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.12), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 1 Then txtVMATRICULA.Text = "120" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.06), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.1), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") ElseIf dato = 2 Then txtVMATRICULA.Text = "180" txtSMEDICO.Text = Format(Val(txtVMATRICULA.Text * 0.08), "##, 00") txtSINTERNET.Text = Format(Val(txtVMATRICULA.Text * 0.09), "##,00") txtSRECREACION.Text = Format(Val(txtVMATRICULA.Text * 0.11), "##,00") txtTOTAL.Text = Format(Val(txtVMATRICULA.Text) + Val(txtSMEDICO.Text) + Val(txtSINTERNET.Text) + Val(txtSRECREACION.Text) + 5, "##,00") End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbTIPO.Items.Add("PARTICULAR") cmbTIPO.Items.Add("FISCAL") cmbTIPO.Items.Add("FISCOMISIONAL") cmbCOLEGIO.Items.Add("HISPANO AMRICA") cmbCOLEGIO.Items.Add("GUAYAQUIL") cmbCOLEGIO.Items.Add("BOLIVAR") cmbCOLEGIO.Items.Add("LA SALLE") cmbCOLEGIO.Items.Add("TIRSO DE MOLINA") cmbCOLEGIO.Items.Add("ADVENTISTA") cmbCOLEGIO.Items.Add("ATENAS") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click txtNOMBRE.Text = "" txtAPELLIDO.Text = "" txtTELEFONO.Text = "" txtDIRECCIN.Text = "" txtVMATRICULA.Text = ""

cmbTIPO.Text = "" cmbCOLEGIO.Text = "" txtSINTERNET.Text = "" txtSMEDICO.Text = "" txtSRECREACION.Text = "" txtTOTAL.Text = "" End Sub End Class ESTE CODIGO ABARCA TODOS LOS DATOS DEL ESTUDIANTE Y NOMBRE. TIPO DE COLEGIO

Realizar un programa que permita realizar el control de notas de los estudiantes VALIDACION DE NOTAS
If Val(Txtmnota3.Text) >= 1 And Val(Txtmnota3.Text) <= 10 Then Else MsgBox("VALOR INCORRECTO") Txtmnota3.Text = " " End If txtpro1.Text = Format((Val(Txtmnota1.Text) + Val(txtmnota2.Text) + Val(Txtmnota3.Text)) / 3, "##.00") If Val(txtpro1.Text) >= 7 Then txtequi1.Text = "APROBADO" ElseIf Val(txtpro1.Text) >= 5 And Val(txtpro1.Text) <= 7 Then txtequi1.Text = "SUSPENSO" ElseIf Val(txtpro1.Text) < 5 Then txtequi1.Text = "REPROBADO" End If

Select Case (ComboBox1.SelectedIndex) Case Is = 0 lblmateria1.Text = " FISICA II" lblmateria2.Text = " TUTORIAS" lblmateria3.Text = " PROGRAMACIONI" lblmateria4.Text = " TRABALO EN EQUIPO" lblmateria5.Text = " MATEMATICA BASICA" lblmateria6.Text = " METODOLOGIA DE LA INVESTIGACION" Case Is = 1 lblmateria1.Text = " MODELOS PEDAGOGICOS" lblmateria2.Text = " MATEMATICA AVANZADA" lblmateria3.Text = " PSICOLOGIA GENERAL" lblmateria4.Text = " ELECTRONICA" lblmateria5.Text = " PROGRAMACION II" lblmateria6.Text = " ARQUITECTURA MANTENIMIENTO I" Case Is = 2 lblmateria1.Text = " LENGUAJE PROGRAMACION I" lblmateria2.Text = " HERRAMIENTAS MULTIMEDIA" lblmateria3.Text = " PROBLEMAS DE APRENDIZAJE" lblmateria4.Text = " PLANIFICACION CURRICULAR" lblmateria5.Text = " GESTOR BASE DE DATOS" lblmateria6.Text = " ARQUITECTURA MANTENIMIENTO II" Case Is = 3 lblmateria1.Text = " PRACTICAS PREPROFESIONALES" lblmateria2.Text = " SISTEMAS OPERATIVOS" lblmateria3.Text = " PROGRAMACION WEB 1 " lblmateria4.Text = " REDES" lblmateria5.Text = " SISTEMATIZACION CONTABLE" lblmateria6.Text = " GESTION DE PROYECTOS" End Select

REALICE UN PROGRAMA QUE ME PERMITA AUTOMATIZAR LA COMPRA Y VENTA DE VEHICULOS.

PictureBox1=imagen del auto

Utilizaremos los siguientes text box Textbox1=txtnombres Textbox2=txtapellido Textbox3=txtcedula Textbox4=txtdireccion Textbox4=txttelefono Textbox5=txttvehiculo Textbox6=txtvalor Textbox7=txtvalventa Textbox8=txtcomvendedor

Utilizaremos 3 GroupBox

GroupBox1=Datos personales GroupBox2=Datos del vehculo GroupBox3=Valores totales Label1= Tema Label2=Cdigo Label3= Nombre Label4= Apellido Label5=Cedula Label6=Direccin Label7=Telfono Label8=Tipo de vehculo Label9=Valor Label10=Color Label11=Aire acondicionado Label12= Vidrios elctricos Label13= Valor de venta Label14=Comisin vendedor Label15= Total comisin Label16=Total a pagar Textbox9=txttotcomision Textbox10=txttotpagar Combobox1= Para La Seleccin Del Cdigo Combobox2= Para La Seleccin Del Tipo De Vehculo Combobox3= Para Seleccionar El Color Del Carro Combobox4= Para La Seleccin Del Aire Acondicionado Combobox5= Para La Seleccin De Vidrios Elctricos Button1= Para Nuevo Button2= Para Aadir Venta Button3= Para Salir

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbcodigo.SelectedIndexChanged Select Case (cmbcodigo.SelectedIndex) Case Is = 0 txtnombre.Text = "Maria Emitelia" txtapellido.Text = "Rosero Rosero" txtci.Text = "1802456989" txtdirec.Text = "Ambato" txttelef.Text = "2825898" Case Is = 1 txtnombre.Text = "Milto Gabriel " txtapellido.Text = "Pallo Real" txtci.Text = "1808856569" txtdirec.Text = "Quito" txttelef.Text = "0988623569" Case Is = 2 txtnombre.Text = "Celso Anibal" txtapellido.Text = "Jarrin Urrutia" txtci.Text = "1801112532" txtdirec.Text = "Riobamba" txttelef.Text = "0999562254" End Select End Sub (COMBOBOX) Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbcarro.SelectedIndexChanged Select Case (cmbcarro.SelectedIndex) Case Is = 0 txtpresio.Text = 22000.0 PictureBox2.Load("C:\PRUEBA\camioneta.jpg") If Val(txtpresio.Text) >= 22000 And Val(txtpresio.Text) <= 25000 Then txtvalorv.Text = Val(txtpresio.Text) txtcomi.Text = Val(txtvalorv.Text) * 0.04 End If txttotal.Text = Val(txtcomi.Text) + Val(txttotal.Text) txttapagar.Text = Val(txttotal.Text) + Val(txttapagar.Text) Case Is = 1 txtpresio.Text = 25000.0 PictureBox2.Load("C:\PRUEBA\auto.jpg") If Val(txtpresio.Text) >= 22000 And Val(txtpresio.Text) <= 25000 Then txtvalorv.Text = Val(txtpresio.Text) txtcomi.Text = Val(txtvalorv.Text) * 0.04

End If txttotal.Text = Val(txtcomi.Text) + Val(txttotal.Text) txttapagar.Text = Val(txttotal.Text) + Val(txttapagar.Text) Case Is = 2 txtpresio.Text = 35000.0 PictureBox2.Load("C:\PRUEBA\furgon.jpg") If Val(txtpresio.Text) > 25000 And Val(txtpresio.Text) <= 35000 Then txtvalorv.Text = Val(txtpresio.Text) txtcomi.Text = Val(txtvalorv.Text) * 0.05 End If txttotal.Text = Val(txtcomi.Text) + Val(txttotal.Text) txttapagar.Text = Val(txttotal.Text) + Val(txttapagar.Text) End Select End Sub (COMBOBOX) Private Sub cmbcolor_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbcolor.SelectedIndexChanged Select Case (cmbcolor.SelectedIndex) Case Is = 0 PictureBox1.Load("C:\PRUEBA\negro.jpg") Case Is = 1 PictureBox1.Load("C:\PRUEBA\blanco.jpg") Case Is = 2 PictureBox1.Load("C:\PRUEBA\gris.jpg") Case Is = 3 PictureBox1.Load("C:\PRUEBA\rojo.jpg") Case Is = 4 PictureBox1.Load("C:\PRUEBA\azul.jpg") End Select End Sub (BOTTON1) Private Sub cmdlimpiar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdlimpiar.Click txtnombre.Text = "" txtapellido.Text = "" txtci.Text = "" txtdirec.Text = "" txttelef.Text = "" txtvalorv.Text = "" txtcomi.Text = "" txttotal.Text = "" cmbcarro.Text = "" cmbcodigo.Text = "" cmbaire.Text = "" cmbcolor.Text = "" cmbvidrio.Text = "" (CODIFICACION DEL BOTTON2) Private Sub cmdaadir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdaadir.Click txtcomi.Text = ""

txtvalorv.Text = "" cmbaire.Text = "" cmbcolor.Text = "" cmbvidrio.Text = "" cmbcarro.Text = "" txtpresio.Text = "" PictureBox1.Load("C:\PRUEBA\blanco.jpg") PictureBox2.Load("C:\PRUEBA\blanco.jpg") (CODIFICACION DEL BOTTON3) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub RESULTADO DE LA PRESENTACION DE DIFERENTES COMPRAS DE CARTROS A ELEJIR

1.- Se necesita automatizar el proceso de escalafn de los docentes de la Carrera de Docencia en Informtica de la Facultad de Ciencias Humanas y de la Educacin de la Universidad Tcnica Ambato, bajo los siguientes parmetros. 1.- Se trabaja en un formato de Fichas 2.- La Ficha Datos Personales permite el ingreso de informacin personal del docente Cedula Nombres Direccin Telfono 3.- La Ficha Estudios Realizados permite el ingreso de los siguientes Datos Ttulo Obtenido Magister 200 PHD 300 Tercer Nivel 100 Mritos Mejor Egresado 100 Reconocimientos 50 Publicaciones Libros 100 Revistas 50 Artculos Indexados 50

Idiomas Hablar, Leer, Escribir 50 Leer, Entender 30 Proyectos Investigacin 30 Vinculacin 30 Otros 10 Cada escala equivale a 200 puntos para realizar un ascenso. Determine la escala que le corresponde al docente y el sueldo promedio, considerando que todos los docentes ganan Usd 540, y por cada escala le corresponde Usd 200,00 adicionales. Obtenga el total de docentes por cada escala y el valore acumulado correspondiente al sueldo, el proceso es repetitivo. Examen Utilizaremos un tabcontrol para realizar nuestro programa de forma adecuada y ordenada Utilizaremos dos botones para el blanqueamiento y salir de todo el programa. En el siguiente programa utilizaremos los siguientes label. Label1= tema del examen Label2=nombre Label3=direccin Label4= cedula Label5=telfono Label6=detalle Label7=tipo Label8=valor parcial Label9=valor total Label10=ttulo obtenido Label11= mritos Label12= publicaciones Label13= idiomas Label14=proyectos Label15= total de puntos Label16=escala Label17=sueldo Label18=nivel 1 Label19=nivel 2 Label20=nivel 3 Label21 =nivel 4 Label22= nivel 5 Label23= nmero de docentes Label24= sueldo total

Utilizaremos los siguientes texbox Textbox1=txtnombres Textbox2=txtdireccion Textbox3=cedula Textbox4=txttelefono Textbox5=txttitulo Textbox6=txtmeri Textbox7=txtvpubli Textbox8=txtvidio Textbox9=txtproyec Textbox10=txtitotal Textbox11=txtmertotal Textbox12=txtpublitotal Textbox13=txtidiototal Textbox14=txtproyetotal Textbox15=txtpuntos Textbox16=txtescala Textbox17=txtsueldo Textbox18=txtn1 Textbox19=txtn2 Textbox20=txtn3 Textbox21=txtn4 Textbox22=txtn5 Textbox23=txtsuel1

txtproyec.Text = "" txttitotal.Text = "" txtmertotal.Text = "" txtpublitotal.Text = "" txtidiototal.Text = "" txtproyetotal.Text = "" ComboBox1.Text = "" ComboBox2.Text = "" ComboBox3.Text = "" ComboBox4.Text = "" ComboBox5.Text = "" txtpuntos.Text = "" txtsueldo.Text = "" txtescala.Text = "" txtnombres.Text = "" txtcedula.Text = "" txtdireccion.Text = "" txttelefono.Text = ""

Public Class Form1 (CODIFICACION DEL PRIMER COMBOBOX) Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged Select Case (ComboBox1.SelectedIndex) Case Is = 0 txttitulo.Text = 200 Case Is = 1 txttitulo.Text = 300 Case Is = 2 txttitulo.Text = 100 End Select txttitotal.Text = Val(txttitulo.Text) + Val(txttitotal.Text) End Sub (CODIFICACION DEL SEGUNDO COMBOBOX)

Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged Select Case (ComboBox2.SelectedIndex) Case Is = 0 txtvmeri.Text = 100 Case Is = 1 txtvmeri.Text = 50 End Select txtmertotal.Text = Val(txtmertotal.Text) + Val(txtvmeri.Text) End Sub (CODIFICACION DEL TERCER COMBOBOX) Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox3.SelectedIndexChanged Select Case (ComboBox3.SelectedIndex) Case Is = 0 txtvpubli.Text = 100 Case Is = 1 txtvpubli.Text = 50 Case Is = 2 txtvpubli.Text = 50 End Select txtpublitotal.Text = Val(txtvpubli.Text) + Val(txtpublitotal.Text) End Sub (CODIFICACION DEL CUARTO COMBOBOX) Private Sub ComboBox4_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox4.SelectedIndexChanged Select Case (ComboBox4.SelectedIndex) Case Is = 0 txtvidio.Text = 50 Case Is = 1 txtvidio.Text = 30 End Select txtidiototal.Text = Val(txtidiototal.Text) + Val(txtvidio.Text) End Sub (CODIFICACION DEL QUINTO COMBOBOX Y TAMBIEN CODIFICAREMOS PARA EL QUE SE VISUALIZE EL PRECIO TOTAL Y LA ESCALA DE PUNTOS) Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox5.SelectedIndexChanged Dim a As Byte Select Case (ComboBox5.SelectedIndex) Case Is = 0 txtproyec.Text = 30 Case Is = 1 txtproyec.Text = 30 Case Is = 2 txtproyec.Text = 10 End Select

txtproyetotal.Text = Val(txtproyetotal.Text) + Val(txtproyec.Text) txtpuntos.Text = Val(txttitotal.Text) + Val(txtmertotal.Text) + Val(txtpublitotal.Text) + Val(txtidiototal.Text) + Val(txtproyetotal.Text) If Val(txtpuntos.Text) >= 200 And Val(txtpuntos.Text) <= 399 Then txtescala.Text = "Nivel 1" txtsueldo.Text = 740 a = 1 txtn1.Text = a + Val(txtn1.Text) txtsuel1.Text = Val(txtsuel1.Text) + Val(txtsueldo.Text) ElseIf Val(txtpuntos.Text) >= 400 And Val(txtpuntos.Text) <= 599 Then txtescala.Text = "Nivel 2" txtsueldo.Text = 940 a = 1 txtn2.Text = a + Val(txtn2.Text) txtsuel2.Text = Val(txtsuel2.Text) + Val(txtsueldo.Text) ElseIf Val(txtpuntos.Text) >= 600 And Val(txtpuntos.Text) <= 799 Then txtescala.Text = "Nivel 3" txtsueldo.Text = 1140 a = 1 txtn3.Text = a + Val(txtn3.Text) txtsuel3.Text = Val(txtsuel3.Text) + Val(txtsueldo.Text) ElseIf Val(txtpuntos.Text) >= 800 And Val(txtpuntos.Text) <= 999 Then txtescala.Text = "Nivel 4" txtsueldo.Text = 1340 a = 1 txtn4.Text = a + Val(txtn4.Text) txtsuel4.Text = Val(txtsuel4.Text) + Val(txtsueldo.Text) ElseIf Val(txtpuntos.Text) >= 1000 Then txtescala.Text = "Nivel 5" txtsueldo.Text = 1540 a = 1 txtn5.Text = a + Val(txtn5.Text) txtsuel5.Text = Val(txtsuel5.Text) + Val(txtsueldo.Text) End If End Sub (BLANQUEAMIENTO DE LOS TEXTBOX) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click txttitulo.Text = "" txtvmeri.Text = "" txtvpubli.Text = "" txtvidio.Text = "" txtproyec.Text = "" txttitotal.Text = "" txtmertotal.Text = "" txtpublitotal.Text = "" txtidiototal.Text = "" txtproyetotal.Text = "" ComboBox1.Text = "" ComboBox2.Text = "" ComboBox3.Text = "" ComboBox4.Text = "" ComboBox5.Text = ""

txtpuntos.Text = "" txtsueldo.Text = "" txtescala.Text = "" txtnombres.Text = "" txtcedula.Text = "" txtdireccion.Text = "" txttelefono.Text = "" End Sub (CODIFICACION DEL BOTON SALIR) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub Private Sub txtnombres_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtnombres.TextChanged End Sub End Class

DATOS ACADEMICAS

Realizar un programa que me permita realizar consultas mdicas en la cual haya una serie de especialidades y la cual contenga el control de citas de cada paciente como total de turnos, recaudacin, y el valor de cada consulta, adems el programa debe contener la opcin adicionar y el botn nuevo.

Dim a As Byte Select Case (cmdespecialidad.SelectedIndex) Case Is = 0 txtvalor.Text = 5.0 a = 1 txt1.Text = Val(txt1.Text) + a If Val(txt1.Text) = 5 Then MsgBox("No hay turnos") txt1.Text = 5 End If txtre1.Text = Val(txtvalor.Text) + Val(txtre1.Text) Case Is = 1 txtvalor.Text = 6.0 a = 1 txt2.Text = Val(txt2.Text) + a If Val(txt2.Text) = 5 Then MsgBox("No hay turnos") txt2.Text = 5 End If txtre2.Text = Val(txtvalor.Text) + Val(txtre2.Text) Case Is = 2 txtvalor.Text = 4.0 a = 1 txt3.Text = Val(txt3.Text) + a If Val(txt3.Text) = 5 Then MsgBox("No hay turnos") txt3.Text = 5 End If txtre3.Text = Val(txtvalor.Text) + Val(txtre3.Text) Case Is = 3 txtvalor.Text = 6.0 a = 1 txt4.Text = Val(txt4.Text) + a If Val(txt4.Text) = 5 Then MsgBox("No hay turnos") txt4.Text = 5 End If txtre4.Text = Val(txtvalor.Text) + Val(txtre4.Text) End Select

En el Button adicionar ingresamos cdigos, las cuales nos permiten blanquear textos.

txtvalor.Text = "" txtnombre.Text = "" cmdespecialidad.Text = ""

En el Button nuevo Ingresamos cdigos, las cuales nos permiten borrar los datos que contienen los TextBox
txt1.Text = "" txt2.Text = "" txt3.Text = "" txt4.Text = "" txtre1.Text = "" txtre2.Text = "" txtre3.Text = "" txtre4.Text = "" txtnombre.Text = "" txtvalor.Text = "" cmdespecialidad.Text = "" DE ESTA MANERA SE MUESTRA EL CODIFICADO DEL PROGRAMA INGRESAR. CON LOS DATOS A

RELICE UN PROGRAMA QUE ME PERMITA INGRESAR LOS DATOS PERSONALES DE UN ALUMNO COMO NOMBRE EDAD PESO ESTATURA INGRESANDO 3 PATOLOGIAS CON SUS PRECRIPCIONES Y MEDICAMENTOS. CREO UN NUEVO FORMULARIO INSERTANDO UN TABCONTROL PARA DATOS PERSONALES Y PARA PRESCRIPCIONES MEDICAS.

AL INSERTAR EL TABCONTROL TAMBIEN PODEMOS DARLE NOMBRE DE ESTA MANERA.

Crear carpeta Nombre base visual

CREAR UNA APLICACIN EN ACCES

Guardar la tabla aceptar con los datos ingresados en la tabla

guardamos todo el proyecto

GUARDAR EL FORMULARIO CON EL NOMBRE DE ENTRADA Habilitar opcin base de datos para 32 bits

CONECTAR LA BASE DE DATOS AL ENTORNO DE TRABAJO

ACTIVAMOS LAS TABLAS CON UN VISTO.

Mostrar los datos de la tabla

Arrastro los datos de la tabla al formulario

Datosbindingsource muestra la tabla lista para agregar datos

REALICE UN PROGRAMA QUE ME PERMITA INGRESAR Y VISUALIZAR DATOS PERSONALES DE UNA PERSONA. ELEMENTOS:
2 Form Form1 Entrada Form2 Reporte 4 Label Label1=Cedula Label2= Nombre Label1= Apellido Label1= Edad 4 TextBox TextBox1= Txtcedula TextBox2=Txtnombre TextBox3=Txtapellido TextBox4=Txtedad 1 Button

Button1= Reporte (cmdreporte) 1 DataGridView1 DataGridView1= DatosBindingSource1 1 CrystalReportViewer1 CrystalReportViewer1= Reporte

Public Class Form1 Private Sub DATOSBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DATOSBindingNavigatorSaveItem.Click Me.Validate() Me.DATOSBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.Database1DataSet) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: esta lnea de cdigo carga datos en la tabla 'Database1DataSet.DATOS' Puede moverla o quitarla segn sea necesario. Me.DATOSTableAdapter.Fill(Me.Database1DataSet.DATOS) End Sub

En el Button Reporte la codificacin es:


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Reporte.Show() End Sub End Class

Abrir visual con el nombre de la tabla

Crear formulario con nombre de reporte

crear nueva conecion

AL DAR CLIC EN ESTE BOTON NOS MUESTRA EL REPORTE CORRIDO

Realice un programa que me permita automatizar una gua telefnica con base de datos. INGRESO UN LOGIN ES DECIR UNA CONTRASEA

REALIZO UN FORMULARIO CON UN MENU PRINCIPAL.

INGRESO A UNA DE LAS PESTAAS DEL MEN DE ENTRADA.

El programa corrido nos muestra de esta manera

Disee un programa utilizando formato de fichas en lo cual tiene que estar automatizado el ingreso de datos de los estudiantes del instituto educativo secundario y de la universidad esto tiene que tener su informe y su reporte.
Crear una carpeta en nuestro disco con el nombre de datos y abrir el programa Microsoft Access ya que en este programa vamos hacer los ingresos de nuestro programa.

Ingresar los datos que vamos a poner en nuestra aplicacin, y ya grabado esto tambin en nuestra carpeta y con el formato de Access 2002-2003 ya que con este formato nos permitir elaborar correctamente el proceso de interaccin con visual.

Grabados todos los datos en Access nos dirigimos a abrir el programa visual net el cual tambin lo guardamos en nuestra carpeta ya realizada

Nos dirigimos a la pestaa proyecto y escogemos la opcin formulario de inicio este nos permite ponerle la inicio una clave ya que este ya viene diseado.

Nos muestra este diseo y aca podenos bolverle a disear cambiandole de imagen y el formasdo de sus label y de su formulario.

Nos dirigimos a el botn de aceptar dndole doble clic nos dirigir a un programador, ac tenemos que programar para que nos coja la contrasea que nosotros queramos.

Programado la contrasea nos dirigimos a crear otro formulario ya que en este tiene que estar el men principal de nuestro programa, primero tenemos que irnos a nuestras herramienta y elegir la opcin MenuStrip

8.- Nos muestra esta ventana, en estas ventanas podremos poner nuestro men

9.- Puesto el men tenemos que programarle para que al presionar una ventana se nos dirija a lo que nos esta pidiendo

Es el codificado para que se dirija a nuestro ingreso de datos

Se muestra el codificado para que se nos dirija a nuestro informe o detalle

Es el codificado para que se salga de nuestro programa

Este es su codificado para que se nos dirija nuestro reporte

Despues de haber creado nuestro men comenzamos hacer nuestro reporte y empezamos creando otro formulario ac tenemos que dirigirnos a proyecto y escogemos la opcin agregar nuevo elemento y nos saldr la siguiente ventana

Ac tenemos darle clic en next

Ac vamos a darle un clic en examinar ya que este nos permite entrelazar nuestro informacin que tenemos con Access la buscamos y aceptamos

17.- Ac ya escogido nuestro Access damos clic en nueva conexin y ponemos next y tambin nos saldr una ventana la cual tenemos que dar clic en no y listo.

Ac se nos desplegara una nueva ventana la cual tenemos que elegir las dos opciones y aceptar

Ya creado nuestro reporte tenemos que dirigirnos a origen de datos y taspasar todo los datos necesarios para crear nuestro ingreso de datos.

Ya traspasado dodos nuestros datos yos podemos configurar como nosotros queramos incluso ponerle una imagen segn sea el tema de nuestro programa

21.-Ya echo todo eso creamos otro formulario donde en este vamos a crear nuestro crystareportviwer yo escogemos en nuestra barra de herramientas.

22.-ya escogido se nos desplegara una nueva ventana donde tenemos que escoger nuestro reporte ya creado anterior mente y listo ya podemos verla

23.-Ac vamos a crea una nueva conexin donde tenemos la oportunidad de agruparlos como nosotros queramos o filtrarlos segn lo pedido del programa, tenemos que dirigirnos al icono proyecto y escoger la opcin agregar nuevo elemento despus dirigirnos a reporting y escoger cristal reporty

24.- Ac escogemos la opcin estndar damos clic en aceptar

En esta ventana tenemos que escoger nuestro informe que lo tenemos desarrollado en Access

Ya elegido nuestra base de datos tenemos que buscarla en esta ficha y pasarla a la otra ventana.

27.-Aca tenemos que pasar todos los datos a la otra plantilla

28.- Ac pasamos lo datos con los que queramos que se agrupen

escogemos el formato estndar y aceptamos

listo ya tenemos nuestro informe

realizamos otro formulario ponemos aca el informe

Aca corremos el programa con f5 y podemos ver que nos saldr la ventana de la clave La ingresamos y nos dirigir al men.

Aca en este men elegimos ingreso de datos dndole doble clic

Ac ingresamos los datos y guardamos y dndole un clic en detalles podremos ver lo que emos guardado.

Presionando en salir se nos dirigir a una ventana final ya que este todo el proceso de nuestro programa

You might also like