15/2/2018
Inicio
Inicio Inicio
PROGRAMACIÓN III
UNIVERSIDAD CENTRAL DEL ECUADOR FACULTAD DE FILOSOFÍA, LETRAS Y CIENCIAS DE LA EDUCACIÓN
INFORMÁTICA PROGRAMACIÓN III "B" Flores Andy
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
1/103
15/2/2018
Inicio
Silabo
SILABO
I UNIDAD: CONCEPTUALIZACIÓN DE LA PROGRAMACIÓN ORIENTADA A OBJETOS
II UNIDAD: INTRODUCCIÓN .NET
III UNIDAD: VARIABLES Y OPERACIONES
IV UNIDAD: FORMULARIOS
EJERCICIOS:
i unidad
I UNIDAD http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
2/103
15/2/2018
Inicio
CONCEPTUALIZACIÓN DE LA PROGRAMACIÓN ORIENTADA A OBJETOS 1ª semana 2ª semana 3ª semana 4ª semana
unidad I semana I
1ª semana
Conceptos Características programación orientada a objetos Lecturas Análisis y comprensión de materiales bibliográficos y documentales
unidad I semana II
2ª semana
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
3/103
15/2/2018
Inicio
Polimorfismo Herencia Encapsulamiento Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad I semana III
3ª semana
Abstracción Objetos Atributos Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad I semana IV http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
4/103
15/2/2018
Inicio
4ª semana
Métodos Clases Análisis y comprensión de materiales bibliográficos y documentales
ii unidad
II UNIDAD
INTRODUCCIÓN .NET 1ª semana 2ª semana 3ª semana 4ª semana
unidad II semana I
1ª semana http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
5/103
15/2/2018
Inicio
Ventajas y Desventajas Evolución .NET Lecturas Análisis y comprensión de materiales bibliográficos y documentales
unidad II semana II
2ª semana
Visual Basic Arquitectura :Net Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad II semana III
3ª semana
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
6/103
15/2/2018
Inicio
Windows Forms Diseño de Interfaz Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad II semana IV
4ª semana
Herramientas y propiedades Análisis y comprensión de materiales bibliográficos y documentales
iii unidad
III UNIDAD
VARIABLES Y OPERACIONES 1ª semana http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
7/103
15/2/2018
Inicio
2ª semana 3ª semana 4ª semana
unidad III semana I
1ª semana
Variables Locales Variables Globales Operaciones Básicas Lecturas Análisis y comprensión de materiales bibliográficos y documentales
unidad III semana II
2ª semana
Sentencias de Selección IF http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
8/103
15/2/2018
Inicio
Sentencias de Repetición FOR Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad III semana III
3ª semana
Sentencias de Repetición WHILE Sentencias de Repetición DO WHILE Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad III semana IV
4ª semana
Sentencias Case http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
9/103
15/2/2018
Inicio
Manejo de Menús Análisis y comprensión de materiales bibliográficos y documentales
iv unidad
IV UNIDAD
FORMULARIOS 1ª semana 2ª semana 3ª semana 4ª semana
unidad IV semana I
1ª semana
Diseño de Formularios Lecturas
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
10/103
15/2/2018
Inicio
Análisis y comprensión de materiales bibliográficos y documentales
unidad IV semana II
2ª semana
Menús Check Box Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad IV semana III
3ª semana
Manejo de Combo Box List Box Búsqueda de información Exposiciones http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
11/103
15/2/2018
Inicio
Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad IV semana IV
4ª semana
Conexión Base de Datos Análisis y comprensión de materiales bibliográficos y documentales
Ejercicios de la unidad
EJERCICIOS CON FORMULARIOS
Ejercicios del primer hemisemestre Mapa Ejercicio 1 Función Trim Deber en Grupo Operadores http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
12/103
15/2/2018
Inicio
InputBox y MsgBox 3 Ejercicios Cuestionario de 20 Preguntas Votación Prueba Numero Mayor
Ejercicios del segundo hemisemestre Cuatro ejercicios Días de la semana Vectores y cédula
Mapa
CARACTERISTICAS Y EVENTOS http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
13/103
15/2/2018
Inicio
REGRESAR EJERCICIO 1
EJERCICIO1 FORM1 Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = "PROGRAMACIÓN III" End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Label1.ForeColor = Color.Brown End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Close() End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Label1.Font = New Font("Jokerman", 20) End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
14/103
15/2/2018
Inicio
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Form2.Show() End Sub
Private Sub Button3_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button3.MouseMove Label1.BackColor = Color.LemonChiffon End Sub End Class FORM2 Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form3.Show() End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click PictureBox1.Visible = True End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click PictureBox1.Visible = False End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
15/103
15/2/2018
Inicio
End Class FORM3 Public Class Form3 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form1.Hide() Form2.Hide() Me.Close() End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
16/103
15/2/2018
Inicio
REGRESAR FUNCION TRIM
FUNCIONES TRIM FORM1 Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click LTRIM1.Show() End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
17/103
15/2/2018
Inicio
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click RTRIM1.Show() End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click ALLTRIM.Show() End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click SUBSTR.Show() End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click End End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub End Class FORM2 Public Class Form2 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
18/103
15/2/2018
Inicio
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() Form1.Show() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() TRIME.Show() End Sub End Class FORM3 Public Class TRIME
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() Form1.Show() End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
19/103
15/2/2018
Inicio
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cadena As String = "
HOLA
MUNDO
"
Label2.Text() = cadena cadena.Trim() Label2.Text() = cadena End Sub End Class FORM4 Public Class LTRIM1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() Form1.Show() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() LTRIMEJEMPLO.Show() End Sub End Class FORM5 Public Class ALLTRIMEJEMPLO
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
20/103
15/2/2018
Inicio
Dim cadena As String = "
HOLA
MUNDO
"
Label2.Text() = cadena cadena.Trim() Label2.Text() = cadena End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form1.Show() Me.Close() End Sub End Class FORM6 Imports Funciones_vb = Microsoft.VisualBasic Public Class LTRIMEJEMPLO Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text = LTrim(TextBox1.Text) End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form1.Show() Me.Close() End Sub
Private Sub LTRIMEJEMPLO_Load(sender As Object, e As EventArgs) Handles MyBase.Load http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
21/103
15/2/2018
Inicio
End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
22/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
23/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
24/103
15/2/2018
Inicio
REGRESAR DEBER EN GRUPO
PROGRAMA CON VEINTE OPCIONES: Lugares turÃsticos Public Class podocarpos Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub chimborazo_Click(sender As Object, e As EventArgs) Handles chimborazo.Click Chimborazo2.Show() End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
25/103
15/2/2018
Inicio
Private Sub atacazo_Click(sender As Object, e As EventArgs) Handles atacazo.Click Atacazo2.Show() End Sub
Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click Podocarpus2.Show() End Sub
Private Sub basilica_Click(sender As Object, e As EventArgs) Handles basilica.Click Basilica2.Show() End Sub
Private Sub cotopaxi_Click(sender As Object, e As EventArgs) Handles cotopaxi.Click Cotopaxi2.Show() End Sub
Private Sub cuenca_Click(sender As Object, e As EventArgs) Handles cuenca.Click Cuenca2.Show() End Sub
Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles PictureBox2.Click Galapagos2.Show() http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
26/103
15/2/2018
Inicio
End Sub
Private Sub PictureBox3_Click(sender As Object, e As EventArgs) Handles PictureBox3.Click Sanfrancisco2.Show() End Sub
Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles PictureBox4.Click Iliniza2.Show() End Sub
Private Sub PictureBox5_Click(sender As Object, e As EventArgs) Handles PictureBox5.Click Floreana2.Show() End Sub
Private Sub PictureBox6_Click(sender As Object, e As EventArgs) Handles PictureBox6.Click Mindo2.Show() End Sub
Private Sub PictureBox7_Click(sender As Object, e As EventArgs) Handles PictureBox7.Click Mitad2.Show() End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
27/103
15/2/2018
Inicio
Private Sub PictureBox8_Click(sender As Object, e As EventArgs) Handles PictureBox8.Click Narizdeldiablo2.Show() End Sub
Private Sub PictureBox9_Click(sender As Object, e As EventArgs) Handles PictureBox9.Click Panecillo2.Show() End Sub
Private Sub PictureBox10_Click(sender As Object, e As EventArgs) Handles PictureBox10.Click Papallacta2.Show() End Sub
Private Sub PictureBox11_Click(sender As Object, e As EventArgs) Handles PictureBox11.Click Cajas2.Show() End Sub
Private Sub PictureBox12_Click(sender As Object, e As EventArgs) Handles PictureBox12.Click Sumaco2.Show() End Sub
Private Sub PictureBox13_Click(sender As Object, e As EventArgs) Handles PictureBox13.Click Pichincha2.Show() http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
28/103
15/2/2018
Inicio
End Sub
Private Sub PictureBox14_Click(sender As Object, e As EventArgs) Handles PictureBox14.Click Quilotoa2.Show() End Sub
Private Sub PictureBox15_Click(sender As Object, e As EventArgs) Handles PictureBox15.Click Tungurahua2.Show() End Sub
Private Sub PictureBox16_Click(sender As Object, e As EventArgs) Handles PictureBox16.Click Baños2.Show() End Sub
Private Sub CERRAR_Click(sender As Object, e As EventArgs) Handles CERRAR.Click End End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
29/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
30/103
15/2/2018
Inicio
REGRESAR OPERADORES http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
31/103
15/2/2018
Inicio
OPERADORES FORM1 Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MATEMATICOS.Show() Me.Hide() End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click End End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click RELACION.Show() Me.Hide() End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click LOGICOS.Show() Me.Hide() End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
32/103
15/2/2018
Inicio
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub End Class FORM2 Public Class RELACION
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 < NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 > NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
33/103
15/2/2018
Inicio
NUM2 = TextBox2.Text If (NUM1 > NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 < NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = " " TextBox2.Text = " " Label1.Visible = False End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Form1.Show() Me.Close() End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
34/103
15/2/2018
Inicio
NUM2 = TextBox2.Text If (NUM1 <= NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 >= NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 >= NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 <= NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
35/103
15/2/2018
Inicio
Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 = NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 <> NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 <> NUM2) Then Label1.Text = "VERDADERO" End If If (NUM1 = NUM2) Then Label1.Text = "FALSO" End If Label1.Visible = True End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
36/103
15/2/2018
Inicio
Private Sub RELACION_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub End Class FORM3 Public Class MATEMATICOS
Private Sub MATEMATICOS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NUM1 As Integer Dim NUM2 As Integer Dim NUM3 As Integer
NUM1 = TextBox1.Text NUM2 = TextBox2.Text NUM3 = NUM1 + NUM2 Label1.Text = NUM3 Label1.Visible = True
End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
37/103
15/2/2018
Inicio
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim NUM1 As Integer Dim NUM2 As Integer Dim NUM3 As Integer
NUM1 = TextBox1.Text NUM2 = TextBox2.Text NUM3 = NUM1 - NUM2 Label1.Text = NUM3 Label1.Visible = True End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim NUM1 As Integer Dim NUM2 As Integer Dim NUM3 As Integer
NUM1 = TextBox1.Text NUM2 = TextBox2.Text NUM3 = NUM1 * NUM2 Label1.Text = NUM3 Label1.Visible = True End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
38/103
15/2/2018
Inicio
Dim NUM1 As Integer Dim NUM2 As Integer Dim NUM3 As Double
NUM1 = TextBox1.Text NUM2 = TextBox2.Text NUM3 = NUM1 / NUM2 Label1.Text = NUM3 Label1.Visible = True End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click TextBox1.Text = " " TextBox2.Text = " " Label1.Visible = False End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Form1.Show() Me.Close() End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Dim NUM1 As Integer Dim NUM2 As Integer http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
39/103
15/2/2018
Inicio
Dim NUM3 As Double
NUM1 = TextBox1.Text NUM2 = TextBox2.Text NUM3 = NUM1 Mod NUM2 Label1.Text = NUM3 Label1.Visible = True End Sub End Class FORM4 Public Class LOGICOS
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NUM1 As String Dim NUM2 As String NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 = "True" & NUM2 = "True") Then Label1.Text = "VERDADERO" End If If (NUM1 = "True" & NUM2 = "False") Then Label1.Text = "FALSO" End If If (NUM1 = "False" & NUM2 = "True") Then Label1.Text = "FALSO" End If http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
40/103
15/2/2018
Inicio
If (NUM1 = "False" & NUM2 = "False") Then Label1.Text = "VERDADERO" End If Label1.Visible() = True End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim NUM1 As String Dim NUM2 As String NUM1 = TextBox1.Text NUM2 = TextBox2.Text If (NUM1 = "True" & NUM2 = "True") Then Label1.Text = "VERDADERO" End If If (NUM1 = "True" & NUM2 = "False") Then Label1.Text = "VERDADERO" End If If (NUM1 = "False" & NUM2 = "True") Then Label1.Text = "VERDADERO" End If If (NUM1 = "False" & NUM2 = "False") Then Label1.Text = "FALSO" End If
Label1.Visible() = True End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
41/103
15/2/2018
Inicio
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim NUM1 As String NUM1 = TextBox1.Text If (NUM1 = "False") Then Label1.Text = "VERDADERO" End If If (NUM1 = "True") Then Label1.Text = "FALSO" End If Label1.Visible() = True End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Form1.Show() Me.Close() End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = " " TextBox2.Text = " " Label1.Visible = False End Sub End Class CAPTURAS http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
42/103
15/2/2018
Inicio
REGRESAR InputBox y MsgBox
InputBox y MsgBox http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
43/103
15/2/2018
Inicio
FORM1 Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ComboBox1.Items.Add(InputBox("Ingreso de datos", "PRIONCIPAL")) MsgBox("DATO AGREGADO") End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MsgBox("HOLA", 2, "PRINCIPAL") End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click End End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
44/103
15/2/2018
Inicio
REGRESAR 3 EJERCICIOS
EJERCICIOS EN CLASE: Gasolinera, volumen y รกrea, operaciones FORM1 Public Class Form1
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
45/103
15/2/2018
Inicio
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Ejercicio1.Show() End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ejercicio2.Show() End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click End End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ejercicio3.Show() End Sub End Class FORM2 Public Class Ejercicio1 Dim Dato1 As Integer Dim Dato2 As Integer Dim Dato3 As Integer Dim suma As Integer Dim resta As Integer Dim multiplicacion As Integer http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
46/103
15/2/2018
Inicio
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dato1 = InputBox("Primer dato") Dato2 = InputBox("Segundo dato")
suma = Dato1 + Dato2 resta = Dato1 - Dato2 multiplicacion = Dato1 * Dato2
MsgBox(suma, 1, "SUMA") MsgBox(resta, 1, " RESTA") MsgBox(multiplicacion, 1, "MULTIPLICACION") End Sub
Private Sub Ejercicio1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Hide() Form1.Show() End Sub End Class FORM3 Public Class ejercicio2 Dim Dato1 As Double http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
47/103
15/2/2018
Inicio
Dim Dato2 As Double Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dato1 = InputBox("Numero de galones") Dato2 = Dato1 * 3.785 * 1.8 MsgBox(Dato2, 1, "Costo en dolares 1.80 litro") End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Hide() Form1.Show() End Sub End Class FORM4 Public Class ejercicio3 Dim Dato1 As Double Dim Dato2 As Double Dim Dato3 As Double Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dato1 = InputBox("RADIO") Dato2 = InputBox("ALTURA") Dato3 = 2 * Dato1 * Dato2 * 3.1415 MsgBox(Dato3, 1, "Area") Dato3 = Dato1 * Dato1 * Dato2 * 3.1415 MsgBox(Dato3, 1, "Volumen") End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
48/103
15/2/2018
Inicio
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Hide() Form1.Show() End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
49/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
50/103
15/2/2018
Inicio
REGRESAR CUESTIONARIO 20 PREGUNTAS
PREGUNTAS RadioButton FORM1 Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End End Sub
Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged If RadioButton1.Checked = True Then RadioButton2.Checked = False RadioButton3.Checked = False RadioButton4.Checked = False RadioButton5.Checked = False RadioButton6.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
51/103
15/2/2018
Inicio
End If RadioButton1.Checked = False End Sub
Private Sub RadioButton7_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton7.CheckedChanged If RadioButton7.Checked = True Then RadioButton8.Checked = False RadioButton9.Checked = False RadioButton10.Checked = False RadioButton11.Checked = False RadioButton12.Checked = False End If RadioButton7.Checked = False End Sub
Private Sub RadioButton13_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton13.CheckedChanged If RadioButton13.Checked = True Then RadioButton14.Checked = False RadioButton15.Checked = False RadioButton16.Checked = False RadioButton17.Checked = False RadioButton18.Checked = False End If RadioButton13.Checked = False End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
52/103
15/2/2018
Inicio
Private Sub RadioButton19_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton19.CheckedChanged If RadioButton19.Checked = True Then RadioButton20.Checked = False RadioButton21.Checked = False RadioButton22.Checked = False RadioButton23.Checked = False RadioButton24.Checked = False End If RadioButton19.Checked = False End Sub
Private Sub RadioButton25_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton25.CheckedChanged If RadioButton25.Checked = True Then RadioButton26.Checked = False RadioButton27.Checked = False RadioButton28.Checked = False RadioButton29.Checked = False RadioButton30.Checked = False End If RadioButton25.Checked = False End Sub
Private Sub RadioButton31_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton31.CheckedChanged If RadioButton31.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
53/103
15/2/2018
Inicio
RadioButton32.Checked = False RadioButton33.Checked = False RadioButton34.Checked = False RadioButton35.Checked = False RadioButton36.Checked = False End If RadioButton31.Checked = False End Sub
Private Sub RadioButton37_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton37.CheckedChanged If RadioButton37.Checked = True Then RadioButton38.Checked = False RadioButton39.Checked = False RadioButton40.Checked = False RadioButton41.Checked = False RadioButton42.Checked = False End If RadioButton37.Checked = False End Sub
Private Sub RadioButton43_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton43.CheckedChanged If RadioButton43.Checked = True Then RadioButton44.Checked = False RadioButton45.Checked = False RadioButton46.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
54/103
15/2/2018
Inicio
RadioButton47.Checked = False RadioButton48.Checked = False End If RadioButton43.Checked = False End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click If RadioButton2.Checked = True Then VAR5 += 1 End If If RadioButton8.Checked = True Then VAR5 += 1 End If If RadioButton14.Checked = True Then VAR5 += 1 End If If RadioButton20.Checked = True Then VAR5 += 1 End If If RadioButton26.Checked = True Then VAR5 += 1 End If If RadioButton32.Checked = True Then VAR5 += 1 End If If RadioButton38.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
55/103
15/2/2018
Inicio
VAR5 += 1 End If If RadioButton44.Checked = True Then VAR5 += 1 End If If RadioButton3.Checked = True Then VAR4 += 1 End If If RadioButton9.Checked = True Then VAR4 += 1 End If If RadioButton15.Checked = True Then VAR4 += 1 End If If RadioButton21.Checked = True Then VAR4 += 1 End If If RadioButton27.Checked = True Then VAR4 += 1 End If If RadioButton33.Checked = True Then VAR4 += 1 End If If RadioButton39.Checked = True Then VAR4 += 1 End If If RadioButton45.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
56/103
15/2/2018
Inicio
VAR4 += 1 End If If RadioButton4.Checked = True Then VAR3 += 1 End If If RadioButton10.Checked = True Then VAR3 += 1 End If If RadioButton16.Checked = True Then VAR3 += 1 End If If RadioButton22.Checked = True Then VAR3 += 1 End If If RadioButton28.Checked = True Then VAR3 += 1 End If If RadioButton34.Checked = True Then VAR3 += 1 End If If RadioButton40.Checked = True Then VAR3 += 1 End If If RadioButton46.Checked = True Then VAR3 += 1 End If If RadioButton5.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
57/103
15/2/2018
Inicio
VAR2 += 1 End If If RadioButton11.Checked = True Then VAR2 += 1 End If If RadioButton17.Checked = True Then VAR2 += 1 End If If RadioButton23.Checked = True Then VAR2 += 1 End If If RadioButton29.Checked = True Then VAR2 += 1 End If If RadioButton35.Checked = True Then VAR2 += 1 End If If RadioButton41.Checked = True Then VAR2 += 1 End If If RadioButton47.Checked = True Then VAR2 += 1 End If If RadioButton6.Checked = True Then VAR1 += 1 End If If RadioButton12.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
58/103
15/2/2018
Inicio
VAR1 += 1 End If If RadioButton18.Checked = True Then VAR1 += 1 End If If RadioButton24.Checked = True Then VAR1 += 1 End If If RadioButton30.Checked = True Then VAR1 += 1 End If If RadioButton36.Checked = True Then VAR1 += 1 End If If RadioButton42.Checked = True Then VAR1 += 1 End If If RadioButton48.Checked = True Then VAR1 += 1 End If Form2.Show() Hide()
End Sub End Class FORM2 Public Class Form2 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
59/103
15/2/2018
Inicio
Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) If RadioButton1.Checked = True Then RadioButton2.Checked = False RadioButton3.Checked = False RadioButton4.Checked = False RadioButton5.Checked = False RadioButton6.Checked = False End If RadioButton1.Checked = False End Sub
Private Sub RadioButton7_CheckedChanged(sender As Object, e As EventArgs) If RadioButton7.Checked = True Then RadioButton8.Checked = False RadioButton9.Checked = False RadioButton10.Checked = False RadioButton11.Checked = False RadioButton12.Checked = False End If RadioButton7.Checked = False End Sub
Private Sub RadioButton13_CheckedChanged(sender As Object, e As EventArgs) If RadioButton13.Checked = True Then RadioButton14.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
60/103
15/2/2018
Inicio
RadioButton15.Checked = False RadioButton16.Checked = False RadioButton17.Checked = False RadioButton18.Checked = False End If RadioButton13.Checked = False End Sub
Private Sub RadioButton19_CheckedChanged(sender As Object, e As EventArgs) If RadioButton19.Checked = True Then RadioButton20.Checked = False RadioButton21.Checked = False RadioButton22.Checked = False RadioButton23.Checked = False RadioButton24.Checked = False End If RadioButton19.Checked = False End Sub
Private Sub RadioButton25_CheckedChanged(sender As Object, e As EventArgs) If RadioButton25.Checked = True Then RadioButton26.Checked = False RadioButton27.Checked = False RadioButton28.Checked = False RadioButton29.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
61/103
15/2/2018
Inicio
RadioButton30.Checked = False End If RadioButton25.Checked = False End Sub
Private Sub RadioButton31_CheckedChanged(sender As Object, e As EventArgs) If RadioButton31.Checked = True Then RadioButton32.Checked = False RadioButton33.Checked = False RadioButton34.Checked = False RadioButton35.Checked = False RadioButton36.Checked = False End If RadioButton31.Checked = False End Sub
Private Sub RadioButton37_CheckedChanged(sender As Object, e As EventArgs) If RadioButton37.Checked = True Then RadioButton38.Checked = False RadioButton39.Checked = False RadioButton40.Checked = False RadioButton41.Checked = False RadioButton42.Checked = False End If RadioButton37.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
62/103
15/2/2018
Inicio
End Sub
Private Sub RadioButton43_CheckedChanged(sender As Object, e As EventArgs) If RadioButton43.Checked = True Then RadioButton44.Checked = False RadioButton45.Checked = False RadioButton46.Checked = False RadioButton47.Checked = False RadioButton48.Checked = False End If RadioButton43.Checked = False End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click If RadioButton2.Checked = True Then VAR5 += 1 End If If RadioButton8.Checked = True Then VAR5 += 1 End If If RadioButton14.Checked = True Then VAR5 += 1 End If If RadioButton20.Checked = True Then VAR5 += 1 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
63/103
15/2/2018
Inicio
End If If RadioButton26.Checked = True Then VAR5 += 1 End If If RadioButton32.Checked = True Then VAR5 += 1 End If If RadioButton38.Checked = True Then VAR5 += 1 End If If RadioButton44.Checked = True Then VAR5 += 1 End If If RadioButton3.Checked = True Then VAR4 += 1 End If If RadioButton9.Checked = True Then VAR4 += 1 End If If RadioButton15.Checked = True Then VAR4 += 1 End If If RadioButton21.Checked = True Then VAR4 += 1 End If If RadioButton27.Checked = True Then VAR4 += 1 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
64/103
15/2/2018
Inicio
End If If RadioButton33.Checked = True Then VAR4 += 1 End If If RadioButton39.Checked = True Then VAR4 += 1 End If If RadioButton45.Checked = True Then VAR4 += 1 End If If RadioButton4.Checked = True Then VAR3 += 1 End If If RadioButton10.Checked = True Then VAR3 += 1 End If If RadioButton16.Checked = True Then VAR3 += 1 End If If RadioButton22.Checked = True Then VAR3 += 1 End If If RadioButton28.Checked = True Then VAR3 += 1 End If If RadioButton34.Checked = True Then VAR3 += 1 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
65/103
15/2/2018
Inicio
End If If RadioButton40.Checked = True Then VAR3 += 1 End If If RadioButton46.Checked = True Then VAR3 += 1 End If If RadioButton5.Checked = True Then VAR2 += 1 End If If RadioButton11.Checked = True Then VAR2 += 1 End If If RadioButton17.Checked = True Then VAR2 += 1 End If If RadioButton23.Checked = True Then VAR2 += 1 End If If RadioButton29.Checked = True Then VAR2 += 1 End If If RadioButton35.Checked = True Then VAR2 += 1 End If If RadioButton41.Checked = True Then VAR2 += 1 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
66/103
15/2/2018
Inicio
End If If RadioButton47.Checked = True Then VAR2 += 1 End If If RadioButton6.Checked = True Then VAR1 += 1 End If If RadioButton12.Checked = True Then VAR1 += 1 End If If RadioButton18.Checked = True Then VAR1 += 1 End If If RadioButton24.Checked = True Then VAR1 += 1 End If If RadioButton30.Checked = True Then VAR1 += 1 End If If RadioButton36.Checked = True Then VAR1 += 1 End If If RadioButton42.Checked = True Then VAR1 += 1 End If If RadioButton48.Checked = True Then VAR1 += 1 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
67/103
15/2/2018
Inicio
End If Form3.Show() Hide()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End End Sub End Class FORM3 Public Class Form2 Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) If RadioButton1.Checked = True Then RadioButton2.Checked = False RadioButton3.Checked = False RadioButton4.Checked = False RadioButton5.Checked = False RadioButton6.Checked = False End If RadioButton1.Checked = False End Sub
Private Sub RadioButton7_CheckedChanged(sender As Object, e As EventArgs) If RadioButton7.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
68/103
15/2/2018
Inicio
RadioButton8.Checked = False RadioButton9.Checked = False RadioButton10.Checked = False RadioButton11.Checked = False RadioButton12.Checked = False End If RadioButton7.Checked = False End Sub
Private Sub RadioButton13_CheckedChanged(sender As Object, e As EventArgs) If RadioButton13.Checked = True Then RadioButton14.Checked = False RadioButton15.Checked = False RadioButton16.Checked = False RadioButton17.Checked = False RadioButton18.Checked = False End If RadioButton13.Checked = False End Sub
Private Sub RadioButton19_CheckedChanged(sender As Object, e As EventArgs) If RadioButton19.Checked = True Then RadioButton20.Checked = False RadioButton21.Checked = False RadioButton22.Checked = False http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
69/103
15/2/2018
Inicio
RadioButton23.Checked = False RadioButton24.Checked = False End If RadioButton19.Checked = False End Sub
Private Sub RadioButton25_CheckedChanged(sender As Object, e As EventArgs) If RadioButton25.Checked = True Then RadioButton26.Checked = False RadioButton27.Checked = False RadioButton28.Checked = False RadioButton29.Checked = False RadioButton30.Checked = False End If RadioButton25.Checked = False End Sub
Private Sub RadioButton31_CheckedChanged(sender As Object, e As EventArgs) If RadioButton31.Checked = True Then RadioButton32.Checked = False RadioButton33.Checked = False RadioButton34.Checked = False RadioButton35.Checked = False RadioButton36.Checked = False End If http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
70/103
15/2/2018
Inicio
RadioButton31.Checked = False End Sub
Private Sub RadioButton37_CheckedChanged(sender As Object, e As EventArgs) If RadioButton37.Checked = True Then RadioButton38.Checked = False RadioButton39.Checked = False RadioButton40.Checked = False RadioButton41.Checked = False RadioButton42.Checked = False End If RadioButton37.Checked = False End Sub
Private Sub RadioButton43_CheckedChanged(sender As Object, e As EventArgs) If RadioButton43.Checked = True Then RadioButton44.Checked = False RadioButton45.Checked = False RadioButton46.Checked = False RadioButton47.Checked = False RadioButton48.Checked = False End If RadioButton43.Checked = False End Sub
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
71/103
15/2/2018
Inicio
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click If RadioButton2.Checked = True Then VAR5 += 1 End If If RadioButton8.Checked = True Then VAR5 += 1 End If If RadioButton14.Checked = True Then VAR5 += 1 End If If RadioButton20.Checked = True Then VAR5 += 1 End If If RadioButton26.Checked = True Then VAR5 += 1 End If If RadioButton32.Checked = True Then VAR5 += 1 End If If RadioButton38.Checked = True Then VAR5 += 1 End If If RadioButton44.Checked = True Then VAR5 += 1 End If If RadioButton3.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
72/103
15/2/2018
Inicio
VAR4 += 1 End If If RadioButton9.Checked = True Then VAR4 += 1 End If If RadioButton15.Checked = True Then VAR4 += 1 End If If RadioButton21.Checked = True Then VAR4 += 1 End If If RadioButton27.Checked = True Then VAR4 += 1 End If If RadioButton33.Checked = True Then VAR4 += 1 End If If RadioButton39.Checked = True Then VAR4 += 1 End If If RadioButton45.Checked = True Then VAR4 += 1 End If If RadioButton4.Checked = True Then VAR3 += 1 End If If RadioButton10.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
73/103
15/2/2018
Inicio
VAR3 += 1 End If If RadioButton16.Checked = True Then VAR3 += 1 End If If RadioButton22.Checked = True Then VAR3 += 1 End If If RadioButton28.Checked = True Then VAR3 += 1 End If If RadioButton34.Checked = True Then VAR3 += 1 End If If RadioButton40.Checked = True Then VAR3 += 1 End If If RadioButton46.Checked = True Then VAR3 += 1 End If If RadioButton5.Checked = True Then VAR2 += 1 End If If RadioButton11.Checked = True Then VAR2 += 1 End If If RadioButton17.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
74/103
15/2/2018
Inicio
VAR2 += 1 End If If RadioButton23.Checked = True Then VAR2 += 1 End If If RadioButton29.Checked = True Then VAR2 += 1 End If If RadioButton35.Checked = True Then VAR2 += 1 End If If RadioButton41.Checked = True Then VAR2 += 1 End If If RadioButton47.Checked = True Then VAR2 += 1 End If If RadioButton6.Checked = True Then VAR1 += 1 End If If RadioButton12.Checked = True Then VAR1 += 1 End If If RadioButton18.Checked = True Then VAR1 += 1 End If If RadioButton24.Checked = True Then http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
75/103
15/2/2018
Inicio
VAR1 += 1 End If If RadioButton30.Checked = True Then VAR1 += 1 End If If RadioButton36.Checked = True Then VAR1 += 1 End If If RadioButton42.Checked = True Then VAR1 += 1 End If If RadioButton48.Checked = True Then VAR1 += 1 End If Form3.Show() Hide()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
76/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
77/103
15/2/2018
Inicio
REGRESAR VOTACION DEBER
VOTACIÃ&#x201C;N Deber FORM1 Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click VAR1 += 1 MsgBox("SU VOTO A SIDO REGISTRADO") http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
78/103
15/2/2018
Inicio
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click VAR2 += 1 MsgBox("SU VOTO A SIDO REGISTRADO") End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click VAR3 += 1 MsgBox("SU VOTO A SIDO REGISTRADO") End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click VAR4 += 1 MsgBox("SU VOTO A SIDO REGISTRADO") End Sub
Private Sub ResultadosToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ResultadosToolStripMenuItem.Click
Dim var As String var = InputBox("CLAVE") If var = "resultados" Then Form2.Show() http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
79/103
15/2/2018
Inicio
Form2.TextBox1.Text = VAR1 Form2.TextBox2.Text = VAR2 Form2.TextBox3.Text = VAR3 Form2.TextBox4.Text = VAR4 Form2.TextBox5.Text = VAR1 + VAR2 + VAR3 + VAR4 Me.Hide() Else MsgBox("CLAVE INCORRECTA") End If End Sub
Private Sub SalirToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SalirToolStripMenuItem.Click End End Sub End Class FORM2 Public Class Form2 Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click End End Sub
End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
80/103
15/2/2018
Inicio
REGRESAR http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
81/103
15/2/2018
Inicio
PRUEBA
PRUEBA1 operaciones con conjuntos Public Class Form1 Dim VAR1 As Integer Dim VAR2 As Integer Dim VAR3 As Integer Dim VAR4 As Integer Dim VAR5 As Integer Dim VAR6 As Integer Dim VAR7 As Integer Dim VAR8 As Integer
Private Sub Button4_Click(sender As Object, e As EventArgs)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click VAR1 = InputBox("PRIMER VALOR", "CONJUNTO B")
ComboBox1.Items.Add(VAR1) End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click End http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
82/103
15/2/2018
Inicio
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click VAR4 = InputBox("PRIMER VALOR", "CONJUNTO B") ComboBox2.Items.Add(VAR4) VAR5 = InputBox("SEGUNDO VALOR", "CONJUNTO B") ComboBox2.Items.Add(VAR5)
End Sub
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
ComboBox3.Items.Clear() If VAR1 = VAR4 Then VAR7 = VAR4 ComboBox3.Items.Add(VAR7) Else If VAR1 = VAR5 Then VAR7 = VAR5 ComboBox3.Items.Add(VAR7) Else ComboBox3.Items.Add("vacio") End If End If http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
83/103
15/2/2018
Inicio
End Sub
Private Sub Button4_Click_1(sender As Object, e As EventArgs) Handles Button4.Click ComboBox3.Items.Clear() If VAR1 = VAR4 Then VAR8 = VAR4 ComboBox3.Items.Add(VAR8) ComboBox3.Items.Add(VAR5) Else If VAR1 = VAR5 Then VAR8 = VAR5 ComboBox3.Items.Add(VAR8) ComboBox3.Items.Add(VAR4) Else ComboBox3.Items.Add(VAR1) ComboBox3.Items.Add(VAR5) ComboBox3.Items.Add(VAR4) End If End If End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click ComboBox1.Items.Clear() ComboBox2.Items.Clear() ComboBox3.Items.Clear() http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
84/103
15/2/2018
Inicio
End Sub End Class CAPTURAS
REGRESAR NUMERO MAYOR
NUMERO MAYOR FORM1 Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
85/103
15/2/2018
Inicio
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim VAR1 As Integer Dim VAR2 As Integer Dim VAR3 As Integer VAR1 = InputBox("PRIMER DATO") ComboBox1.Items.Add(VAR1) VAR2 = InputBox("SEGUNDO DATO") ComboBox1.Items.Add(VAR2) VAR3 = InputBox("TERCER DATO") ComboBox1.Items.Add(VAR3)
If VAR1 > VAR2 Then If VAR1 > VAR3 Then TextBox1.Text = VAR1 End If End If If VAR1 < VAR2 Then If VAR2 > VAR3 Then TextBox1.Text = VAR2 End If End If If VAR3 > VAR2 Then If VAR1 < VAR3 Then TextBox1.Text = VAR3 http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
86/103
15/2/2018
Inicio
End If End If End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ComboBox1.Items.Clear() TextBox1.Clear() End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
End Sub End Class CAPTURAS
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
87/103
15/2/2018
Inicio
REGRESAR http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
88/103
15/2/2018
Inicio
CUATRO EJERCICIOS
DEBER DE CUATRO EJERICIOS Public Class a Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Hide() Form1.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As String Dim b As String a = "verdadero" b = "verdadero" If CheckBox1.Checked = True Then a = "falso" End If If CheckBox3.Checked = True Then b = "falso" End If If a = "verdadero" Then If b = "verdadero" Then MsgBox("verdadero", 1) End If End If If a = "verdadero" Then If b = "falso" Then MsgBox("verdadero", 1) End If End If If a = "falso" Then If b = "verdadero" Then MsgBox("falso", 1) End If End If If a = "falso" Then If b = "falso" Then MsgBox("falso", 1) End If http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
89/103
15/2/2018
Inicio
End If CheckBox1.Checked = False CheckBox2.Checked = False CheckBox3.Checked = False CheckBox4.Checked = False End Sub Private Sub a_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class Public Class b Private Sub b_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Hide() Form1.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As String Dim b As String a = "verdadero" b = "falso" If TextBox1.Text = 5 Then a = "falso" End If If TextBox2.Text = 8 Then b = "verdadero" End If If a = "verdadero" Then If b = "verdadero" Then MsgBox("verdadero", 1) End If End If If a = "verdadero" Then If b = "falso" Then MsgBox("verdadero", 1) End If http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
90/103
15/2/2018
Inicio
End If If a = "falso" Then If b = "verdadero" Then MsgBox("falso", 1) End If End If If a = "falso" Then If b = "falso" Then MsgBox("falso", 1) End If End If TextBox1.Clear() TextBox2.Clear() End Sub End Class Public Class ejer4 Private Sub ejer4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As Integer Dim s As String Dim bul As Boolean a = InputBox("ingrese la edad") s = InputBox("ingrese el genero: 'femenino' o 'masculino'") If a > 25 Then If s = "femenino" Then bul = True End If Else bul = False End If Select Case bul Case True MsgBox("verdadero", 1) Case False MsgBox("falso", 1) Case Else MsgBox("no es numero", 1) End Select End Sub http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
91/103
15/2/2018
Inicio
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Hide() Form1.Show() End Sub End Class
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
92/103
15/2/2018
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
Inicio
93/103
15/2/2018
Inicio
Actividad
REGRESAR SEMANA
DIAS DE LA SEMANA Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Clear() Dim num As Integer num = InputBox("INGRESE EL DĂ?A SEMANA") Select Case num Case 1 TextBox1.Text = "Lunes" Case 2 TextBox1.Text = "Martes" Case 3 TextBox1.Text = "Miercoles" Case 4 TextBox1.Text = "Jueves" Case 5 TextBox1.Text = "Viernes" http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
94/103
15/2/2018
Inicio
Case 6 TextBox1.Text = "Sabado" Case 7 TextBox1.Text = "Domingo" Case Else TextBox1.Text = "No sea bruto ese no existe" End Select End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class
Actividad
REGRESAR
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
95/103
15/2/2018
Inicio
VECTORES
CEDULA Y MATRICES Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim V() As Char Dim x, y, w, m, n, o, p, q As Integer Dim z(11) As Integer Dim a As String a = entrada() V = a.ToCharArray Try For i = 0 To 10 z(i) = Convert.ToInt32(V(i)) z(i) = z(i) - 48 Next Catch ex As Exception End Try For i = 0 To 9 Step 2 y = z(i) * 2 If y > 9 Then w=y-9 m=m+w Else m=m+y End If y=0 Next For i = 1 To 8 Step 2 x = x + z(i) Next n=x+m o = n Mod 10 p = 10 - o If p = z(9) Or p = 10 Then Label1.Text = "CEDULA CORRECTA" http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
96/103
15/2/2018
Inicio
Else Label1.Text = "CEDULA INCORRECTA" End If Dim cadena As String cadena = z(0) & z(1) provincia(cadena) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() Form1.Show() End Sub Function entrada() As String Return TextBox1.Text End Function Sub provincia(ByVal provincia As String) Select Case provincia Case "01" Label2.Text = "Azuay" Case "02" Label2.Text = "Bolivar" Case "03" Label2.Text = "Cañar" Case "04" Label2.Text = "Carchi" Case "05" Label2.Text = "Cotopaxi" Case "06" Label2.Text = "Chimborazo" Case "07" Label2.Text = "El Oro" Case "08" Label2.Text = "Esmeraldas" Case "09" Label2.Text = "Guayas" Case "10" Label2.Text = "Imbabura" Case "11" Label2.Text = "Loja" http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
97/103
15/2/2018
Inicio
Case "12" Label2.Text = "Los Rios" Case "13" Label2.Text = "Manabi" Case "14" Label2.Text = "Morona Santiago" Case "15" Label2.Text = "Napo" Case "16" Label2.Text = "Pastaza" Case "17" Label2.Text = "Pichincha" Case "18" Label2.Text = "Tungurahua" Case "19" Label2.Text = "Zamora Chinchipe" Case "20" Label2.Text = "Galapagos" Case "21" Label2.Text = "Sucumbios" Case "22" Label2.Text = "Orellana" Case "23" Label2.Text = "Santo Domingo de los Tsachillas" Case "24" Label2.Text = "Santa Elena" Case Else Label2.Text = "" End Select End Sub End Class Public Class Form3 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() Form1.Show() End Sub Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click Dim a, b As Integer http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
98/103
15/2/2018
Inicio
a = InputBox("NÚMERO DE FILAS") b = InputBox("NÚMERO DE COLUMNAS") Dim vector1(a,b), vector2(a, b), vector3(a, b) As Integer 'Try 'vector1 = vectores(a, b, 1) 'Catch ex As Exception 'End Try For i = 1 To a For j = 1 To b vector1(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 1") Next Next For i = 1 To a For j = 1 To b vector2(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 2") Next Next For i = 1 To a For j = 1 To b vector3(i, j) = vector1(i, j) + vector2(i, j) Next Next ListBox1.Items.Add("SUMA") imprimir(vector1, a, b) imprimir(vector2, a, b) ListBox1.Items.Add("RESULTADO") imprimir(vector3, a, b) ListBox1.Items.Add("******************") End Sub Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click Dim a, b As Integer a = InputBox("NÚMERO DE FILAS") b = InputBox("NÚMERO DE COLUMNAS") Dim vector1(a, b), vector2(a, b), vector3(a, b) As Integer For i = 1 To a For j = 1 To b vector1(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 1") http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
99/103
15/2/2018
Inicio
Next Next For i = 1 To a For j = 1 To b vector2(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 2") Next Next For i = 1 To a For j = 1 To b vector3(i, j) = vector1(i, j) - vector2(i, j) Next Next ListBox1.Items.Add("RESTA") imprimir(vector1, a, b) imprimir(vector2, a, b) ListBox1.Items.Add("RESULTADO") imprimir(vector3, a, b) ListBox1.Items.Add("******************") End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim a, b, c, d As Integer a = InputBox("NÚMERO DE FILAS MATRIZ 1") b = InputBox("NÚMERO DE COLUMNAS MATRIZ 1") c = InputBox("NÚMERO DE FILAS MATRIZ 2") d = InputBox("NÚMERO DE COLUMNAS MATRIZ 2") Dim vector1(a, b), vector2(c, d), vector3(a, d) As Integer For i = 1 To a For j = 1 To b vector1(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 1") Next Next For i = 1 To c For j = 1 To d vector2(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", "MATRIZ 2") Next Next For i = 1 To a For j = 1 To d For k = 1 To b http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
100/103
15/2/2018
Inicio
vector3(i, j) = vector3(i, j) + (vector1(i, k) * vector2(k, j)) Next Next Next ListBox1.Items.Add("MULTIPLICACIÃ&#x201C;N") imprimir(vector1, a, b) imprimir(vector2, c, d) ListBox1.Items.Add("RESULTADO") imprimir(vector3, a, d) ListBox1.Items.Add("******************") End Sub Sub imprimir(vector(,) As Integer, a As Integer, b As Integer) Dim cadena As String cadena = "" For i = 1 To a For j = 1 To b cadena = cadena & vector(i, j) & " " Next ListBox1.Items.Add(cadena) cadena = "" Next ListBox1.Items.Add("") End Sub Function vectores(ByVal a As Integer, ByVal b As Integer, ByVal c As Integer) As Integer Dim vectorrespuesta(a, b) As Integer For i = 1 To a For j = 1 To b vectorrespuesta(i, j) = InputBox("ELEMENTO [" & i & "] [" & j & "]", " MATRIZ " & c) Next Next Return vectorrespuesta(a, b) End Function End Class
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
101/103
15/2/2018
Inicio
Actividad http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
102/103
15/2/2018
Inicio
REGRESAR Obra publicada con Licencia Creative Commons Reconocimiento Compartir igual 4.0
http://localhost:51235/temp_print_dirs/eXeTempPrintDir_tpep5q/portafolio_final/
103/103