27/11/2017
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
1/83
27/11/2017
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
i unidad
I UNIDAD
CONCEPTUALIZACIÓN DE LA PROGRAMACIÓN ORIENTADA A OBJETOS 1ª semana 2ª semana 3ª semana 4ª semana
unidad I semana I http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
2/83
27/11/2017
Inicio
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
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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
3/83
27/11/2017
Inicio
Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
unidad I semana IV
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
4/83
27/11/2017
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
Windows Forms Diseño de Interfaz Búsqueda de información Exposiciones Trabajos en clases que resuelvan problemas informáticos de la sociedad
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
5/83
27/11/2017
Inicio
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 2ª semana 3ª semana 4ª semana
unidad III semana I
1ª semana
Variables Locales Variables Globales Operaciones Básicas Lecturas http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
6/83
27/11/2017
Inicio
Análisis y comprensión de materiales bibliográficos y documentales
unidad III semana II
2ª semana
Sentencias de Selección IF 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
7/83
27/11/2017
Inicio
Sentencias Case 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 EJERCICIOS DE LA UNIDAD IV
unidad IV semana I
1ª semana
Diseño de Formularios Lecturas Análisis y comprensión de materiales bibliográficos y documentales
unidad IV semana II
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
8/83
27/11/2017
Inicio
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 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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
9/83
27/11/2017
Inicio
Ejercicios de la unidad
EJERCICIOS CON FORMULARIOS
Ejercicios realizados en la Unidad IV Ejercicio 1 Funciรณn Trim Deber en Grupo Operadores InputBox y MsgBox 3 Ejercicios Cuestionario de 20 Preguntas Votaciรณn Prueba Numero Mayor
Mapa
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
10/83
27/11/2017
Inicio
CARACTERISTICAS Y EVENTOS 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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
11/83
27/11/2017
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 End Class http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
12/83
27/11/2017
Inicio
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
13/83
27/11/2017
Inicio
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
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click RTRIM1.Show() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
14/83
27/11/2017
Inicio
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
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
15/83
27/11/2017
Inicio
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
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() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
16/83
27/11/2017
Inicio
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 Dim cadena As String = "
HOLA
MUNDO
"
Label2.Text() = cadena cadena.Trim() Label2.Text() = cadena End Sub http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
17/83
27/11/2017
Inicio
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
End Sub End Class CAPTURAS
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
18/83
27/11/2017
Inicio
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
19/83
27/11/2017
Inicio
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
20/83
27/11/2017
Inicio
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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
21/83
27/11/2017
Inicio
End Sub
Private Sub chimborazo_Click(sender As Object, e As EventArgs) Handles chimborazo.Click Chimborazo2.Show() End Sub
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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
22/83
27/11/2017
Inicio
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() 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() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
23/83
27/11/2017
Inicio
End Sub
Private Sub PictureBox7_Click(sender As Object, e As EventArgs) Handles PictureBox7.Click Mitad2.Show() End Sub
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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
24/83
27/11/2017
Inicio
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() 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
25/83
27/11/2017
Inicio
End Sub End Class CAPTURAS
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
26/83
27/11/2017
Inicio
OPERADORES
OPERADORES FORM1 Public Class Form1 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
27/83
27/11/2017
Inicio
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
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
28/83
27/11/2017
Inicio
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 NUM2 = TextBox2.Text If (NUM1 > NUM2) Then Label1.Text = "VERDADERO" http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
29/83
27/11/2017
Inicio
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 NUM2 = TextBox2.Text If (NUM1 <= NUM2) Then Label1.Text = "VERDADERO" http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
30/83
27/11/2017
Inicio
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 Dim NUM1 As Integer Dim NUM2 As Integer NUM1 = TextBox1.Text http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
31/83
27/11/2017
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 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
Private Sub RELACION_Load(sender As Object, e As EventArgs) Handles MyBase.Load http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
32/83
27/11/2017
Inicio
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
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim NUM1 As Integer http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
33/83
27/11/2017
Inicio
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 Dim NUM1 As Integer Dim NUM2 As Integer http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
34/83
27/11/2017
Inicio
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 Dim NUM3 As Double
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
35/83
27/11/2017
Inicio
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 If (NUM1 = "False" & NUM2 = "False") Then Label1.Text = "VERDADERO" http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
36/83
27/11/2017
Inicio
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
37/83
27/11/2017
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
38/83
27/11/2017
Inicio
InputBox y MsgBox
InputBox y MsgBox FORM1 Public Class Form1
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
39/83
27/11/2017
Inicio
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
40/83
27/11/2017
Inicio
3 EJERCICIOS
EJERCICIOS EN CLASE: Gasolinera, volumen y รกrea, operaciones FORM1 Public Class Form1
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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
41/83
27/11/2017
Inicio
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 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") http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
42/83
27/11/2017
Inicio
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 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() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
43/83
27/11/2017
Inicio
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
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
44/83
27/11/2017
Inicio
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
45/83
27/11/2017
Inicio
CUESTIONARIO 20 PREGUNTAS
PREGUNTAS RadioButton FORM1 Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
46/83
27/11/2017
Inicio
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 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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
47/83
27/11/2017
Inicio
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
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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
48/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
49/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
50/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
51/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
52/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
53/83
27/11/2017
Inicio
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 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
54/83
27/11/2017
Inicio
End If If RadioButton48.Checked = True Then VAR1 += 1 End If Form2.Show() Hide()
End Sub End Class FORM2 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 RadioButton8.Checked = False http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
55/83
27/11/2017
Inicio
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 RadioButton23.Checked = False http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
56/83
27/11/2017
Inicio
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 RadioButton31.Checked = False http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
57/83
27/11/2017
Inicio
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
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
58/83
27/11/2017
Inicio
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 VAR4 += 1 End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
59/83
27/11/2017
Inicio
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 VAR3 += 1 End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
60/83
27/11/2017
Inicio
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 VAR2 += 1 End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
61/83
27/11/2017
Inicio
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 VAR1 += 1 End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
62/83
27/11/2017
Inicio
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 FORM3 Public Class Form2 Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) If RadioButton1.Checked = True Then http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
63/83
27/11/2017
Inicio
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 RadioButton15.Checked = False RadioButton16.Checked = False http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
64/83
27/11/2017
Inicio
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 RadioButton30.Checked = False End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
65/83
27/11/2017
Inicio
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 End Sub
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
66/83
27/11/2017
Inicio
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 End If If RadioButton26.Checked = True Then http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
67/83
27/11/2017
Inicio
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 End If If RadioButton33.Checked = True Then http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
68/83
27/11/2017
Inicio
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 End If If RadioButton40.Checked = True Then http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
69/83
27/11/2017
Inicio
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 End If If RadioButton47.Checked = True Then http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
70/83
27/11/2017
Inicio
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 End If Form3.Show() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
71/83
27/11/2017
Inicio
Hide()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click End End Sub End Class CAPTURAS
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
72/83
27/11/2017
Inicio
VOTACION DEBER
VOTACIÃ&#x201C;N Deber http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
73/83
27/11/2017
Inicio
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") 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
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
74/83
27/11/2017
Inicio
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() 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
75/83
27/11/2017
Inicio
End Sub
End Class CAPTURAS
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
76/83
27/11/2017
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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
77/83
27/11/2017
Inicio
End 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 http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
78/83
27/11/2017
Inicio
End If 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() http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
79/83
27/11/2017
Inicio
ComboBox3.Items.Clear() End Sub End Class CAPTURAS
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 End Sub
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
80/83
27/11/2017
Inicio
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 End If End If http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
81/83
27/11/2017
Inicio
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:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
82/83
27/11/2017
Inicio
Obra publicada con Licencia Creative Commons Reconocimiento Compartir igual 4.0
http://localhost:51237/temp_print_dirs/eXeTempPrintDir_7gtchq/portafolio_-_copia/
83/83