Академический Документы
Профессиональный Документы
Культура Документы
EJERCICIO # 1
Elaborar un programa en Visual Basic .net que me permita realizar una factura.
RADIO BUTTON 2
PictureBox1.Image = Image.FromFile("C:\ descartable.jpg")
Label3.Text = 3 & " dolar"
RADIO BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ retornable.jpg")
Label3.Text = 2 & " dolar"
RADIO BUTTON 1
PictureBox1.Image = Image.FromFile("C:\ lata.jpg")
Label3.Text = 1 & " dolar"
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
TextBox2.Text = ""
Label3.Text = ""
Label5.Text = ""
Label8.Text = ""
PictureBox1.Image = Nothing
TextBox1.Focus()
BOTON CALCULAR
TextBox2.Enabled = True
Label5.Text = Val(TextBox1.Text) * Val(Label3.Text)
AARON MOYOLEMA
Curso: 4to C 6
BOTON CAMBIO
Label8.Text = Val(TextBox2.Text) - Val(Label5.Text)
BOTON SALIR
Me.Close()
EJERCICIO # 2
RADIO BUTTON 2
PictureBox1.Image = Image.FromFile("C:\Users\ raiz3.jpg")
TextBox1.Focus()
RADIO BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ raiz4.jpg")
TextBox1.Focus()
RADIO BUTTON 1
PictureBox1.Image = Image.FromFile("C:\ raiz5.jpg")
TextBox1.Focus()
BOTON CALCULAR
If RadioButton1.Checked = True Then
Label3.Text = Math.Sqrt(TextBox1.Text)
Else
If RadioButton2.Checked = True Then
Label3.Text = TextBox1.Text ^ (1 / 3)
Else
If RadioButton3.Checked = True Then
Label3.Text = TextBox1.Text ^ (1 / 4)
End If
End If
End If
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
AARON MOYOLEMA
Curso: 4to C 6
3
RadioButton3.Checked = False
TextBox1.Text = ""
PictureBox1.Image = Nothing
Label3.Text = ""
BOTON SALIR
Me.Close()
EJERCICIO # 3
RADIO BUTTON 1
PictureBox1.Image = Image.FromFile("C:\LETRAS.png")
RADIO BUTTON 2
PictureBox1.Image = Image.FromFile("C:\INVERTIR.png")
RADIO BUTTON 3
PictureBox1.Image = Image.FromFile("C:\ PRIMERA.png")
BOTON CALCULAR
If RadioButton1.Checked = True Then
Label3.Text = Len(TextBox1.Text)
Else
If RadioButton2.Checked = True Then
Label3.Text = StrReverse(TextBox1.Text)
Else
If RadioButton3.Checked = True Then
Label3.Text = Strings.Left(TextBox1.Text, 1)
End If
End If
End If
BOTON LIMPIAR
PictureBox1.Image = Nothing
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
AARON MOYOLEMA
Curso: 4to C 6
4
Label3.Text = ""
TextBox1.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
EJERCICIO # 4
AARON MOYOLEMA
Curso: 4to C 6
EJERCICIO # 5
AARON MOYOLEMA
Curso: 4to C 6
6
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
Label5.Text = ""
TextBox1.Focus()
EJERCICIO # 6
AARON MOYOLEMA
Curso: 4to C 6
EJERCICIO # 7
AARON MOYOLEMA
Curso: 4to C 6
EJERCICIO # 8
RADIO BUTTON 1
TextBox1.Font = New Font("Arial", 8)
RADIO BUTTON 2
TextBox1.Font = New Font("Comic sans Ms", 8)
RADIO BUTTON 3
TextBox1.Font = New Font("Times New Roman", 8)
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
EJERCICIO # 9
RADIO BUTTON 1
Label4.Text = TextBox1.Text
Label4.ForeColor = Color.Yellow
RADIO BUTTON 2
Label4.Text = TextBox1.Text
Label4.ForeColor = Color.Blue
RADIO BUTTON 3
Label4.Text = TextBox1.Text
Label4.ForeColor = Color.Red
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
10
EJERCICIO # 10
RADIO BUTTON 1
Label4.Text = TextBox1.Text
Label4.Font = New Font("Arial", 12)
RADIO BUTTON 2
Label4.Text = TextBox1.Text
Label4.Font = New Font("Arial", 14)
RADIO BUTTON 3
Label4.Text = TextBox1.Text
Label4.Font = New Font("Arial", 16)
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
11
EJERCICIO # 11
RADIO BUTTON 1
Label4.Text = Val(TextBox1.Text) * 0.11 * (6 / 12)
Label5.Text = (Val(TextBox1.Text) + Val(Label4.Text)) / 6
Label7.Text = Val(TextBox1.Text) + Val(Label4.Text)
RADIO BUTTON 2
Label4.Text = Val(TextBox1.Text) * 0.12 * (9 / 12)
Label5.Text = (Val(TextBox1.Text) + Val(Label4.Text)) / 9
Label7.Text = Val(TextBox1.Text) + Val(Label4.Text)
RADIO BUTTON 3
Label4.Text = Val(TextBox1.Text) * 0.13 * (12 / 12)
Label5.Text = (Val(TextBox1.Text) + Val(Label4.Text)) / 12
Label7.Text = Val(TextBox1.Text) + Val(Label4.Text)
BOTON LIMPIAR
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
Label5.Text = ""
Label7.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
12
EJERCICIO # 12
EJERCICIO # 13
AARON MOYOLEMA
Curso: 4to C 6
13
RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
EJERCICIO # 14
567
AARON MOYOLEMA
Curso: 4to C 6
14
EJERCICIO # 15
CheckBox 1
Label4.Text = TextBox1.Text
Label4.Font = New Font("arial", 10, FontStyle.Bold)
CheckBox 2
Label4.Text = TextBox1.Text
Label4.Font = New Font("arial", 10, FontStyle.Italic)
CheckBox 3
Label4.Text = TextBox1.Text
Label4.Font = New Font("arial", 10, FontStyle.Underline)
BOTON LIMPIAR
CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
15
EJERCICIO # 16
CheckBox 1
Label4.Text = TextBox1.Text
Label4.BackColor = Color.Green
CheckBox 2
Label4.Text = TextBox1.Text
Label4.BackColor = Color.Pink
CheckBox 3
Label4.Text = TextBox1.Text
Label4.BackColor = Color.Purple
BOTON LIMPIAR
CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
Label4.BackColor = Color.Bisque
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
16
EJERCICIO # 17
CheckBox 1
If CheckBox1.Checked = True Then
PictureBox1.Image =
System.Drawing.Image.FromFile("C:\computadora.jpg")
CheckBox1.Text = "no ver"
Else
PictureBox1.Image = Nothing
CheckBox1.Text = "Ver imagen"
End If
BOTON LIMPIAR
CheckBox1.Checked = False
PictureBox1.Image = Nothing
BOTON SALIR
Me.Close()
AARON MOYOLEMA
Curso: 4to C 6
17
EJERCICIO # 18
CheckBox 1
If CheckBox1.Checked = True Then
PictureBox1.Image = System.Drawing.Image.FromFile("C:\ basica.jpg")
Else
PictureBox1.Image = Nothing
End If
CheckBox 2
If CheckBox2.Checked = True Then
PictureBox2.Image = System.Drawing.Image.FromFile("C:\ bachiller.jpg")
Else
PictureBox2.Image = Nothing
End If
CheckBox 3
If CheckBox2.Checked = True Then
PictureBox3.Image = System.Drawing.Image.FromFile("C:\ superior.jpg")
Else
PictureBox3.Image = Nothing
End If
BOTON PRESENTAR
If CheckBox1.Checked = True And CheckBox2.Checked = True And
CheckBox3.Checked = True Then
Label4.Text = "APROBADO PARA EL EMPLEO"
Else
Label4.Text = "REPROBADO PARA EL EMPLEO"
End If
BOTON LIMPIAR
PictureBox1.Image = Nothing
PictureBox2.Image = Nothing
PictureBox3.Image = Nothing
CheckBox1.Checked = False
AARON MOYOLEMA
Curso: 4to C 6
18
CheckBox2.Checked = False
CheckBox3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
EJERCICIO # 19
CheckBox 1
If CheckBox1.Checked = True Then
PictureBox1.Image = System.Drawing.Image.FromFile("C:\ ahorro.jpg")
Else
PictureBox1.Image = Nothing
End If
CheckBox 2
If CheckBox2.Checked = True Then
PictureBox2.Image = System.Drawing.Image.FromFile("C:\ corriente.jpg")
Else
PictureBox2.Image = Nothing
End If
CheckBox 3
If CheckBox2.Checked = True Then
PictureBox3.Image = System.Drawing.Image.FromFile("C:\ plazo.jpg")
Else
PictureBox3.Image = Nothing
End If
BOTON PRESENTAR
If CheckBox1.Checked = True And CheckBox2.Checked = True And
CheckBox3.Checked = True Then
AARON MOYOLEMA
Curso: 4to C 6
19
Label4.Text = "APROBADO PARA EL CREDITO"
Else
Label4.Text = "REPROBADO PARA EL CREDITO"
End If
BOTON LIMPIAR
PictureBox1.Image = Nothing
PictureBox2.Image = Nothing
PictureBox3.Image = Nothing
CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
TextBox1.Text = ""
Label4.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
EJERCICIO # 20
CheckBox 1
If CheckBox1.Checked = True Then
PictureBox1.Image = Image.FromFile("C:\ v.png")
Label1.Text = Val(TextBox1.Text) / Val(TextBox2.Text)
Else
PictureBox1.Image = Nothing
End If
CheckBox 2
If CheckBox2.Checked = True Then
PictureBox2.Image = Image.FromFile("C:\ t.jpg")
Label4.Text = Val(TextBox1.Text) \ Val(TextBox2.Text)
Else
PictureBox2.Image = Nothing
AARON MOYOLEMA
Curso: 4to C 6
20
End If
CheckBox 3
If CheckBox3.Checked = True Then
PictureBox3.Image = Image.FromFile("C:\ d.png")
Label5.Text = Val(TextBox1.Text) * Val(TextBox2.Text)
Else
PictureBox3.Image = Nothing
End If
BOTON LIMPIAR
PictureBox1.Image = Nothing
PictureBox2.Image = Nothing
PictureBox3.Image = Nothing
CheckBox2.Checked = False
CheckBox1.Checked = False
CheckBox3.Checked = False
TextBox1.Text = ""
TextBox2.Text = ""
Label1.Text = ""
Label4.Text = ""
Label5.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
EJERCICIO # 21
CheckBox 1
If CheckBox1.Checked = True Then
PictureBox1.Image = System.Drawing.Image.FromFile("C:\f.png")
Label4.Text = Val(TextBox1.Text) * Val(TextBox2.Text)
AARON MOYOLEMA
Curso: 4to C 6
21
Else
PictureBox1.Image = Nothing
Label4.Text = ""
End If
CheckBox 2
If CheckBox2.Checked = True Then
PictureBox2.Image = System.Drawing.Image.FromFile("C:\ m.png")
Label6.Text = Val(TextBox1.Text) \ Val(TextBox2.Text)
Else
PictureBox2.Image = Nothing
Label6.Text = ""
End If
CheckBox 3
If CheckBox3.Checked = True Then
PictureBox3.Image = System.Drawing.Image.FromFile("C:\ a.jpg")
Label7.Text = Val(TextBox1.Text) / Val(TextBox2.Text)
Else
PictureBox3.Image = Nothing
Label7.Text = ""
End If
BOTON LIMPIAR
TextBox1.Text = ""
TextBox2.Text = ""
CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
Label4.Text = ""
Label6.Text = ""
Label7.Text = ""
TextBox1.Focus()
BOTON SALIR
Me.Close()
EJERCICIO # 22
AARON MOYOLEMA
Curso: 4to C 6
22
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
Label4.Text = " Bogota"
Label6.Text = " Peso Colombiano"
Label7.Text = " Espaol "
Case 1
Label4.Text = " Santiago de Chile"
Label6.Text = " Peso Chileno"
Label7.Text = " Espaol "
Case 2
Label4.Text = " Montevideo"
Label6.Text = " Peso Uruguayo"
Label7.Text = " Espaol "
End Select
BOTON LIMPIAR
Label4.Text = ""
Label6.Text = ""
Label7.Text = ""
ListBox1.ClearSelected()
BOTON SALIR
Me.Close()
EJERCICIO # 23
AARON MOYOLEMA
Curso: 4to C 6
23
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
Label4.Text = " San Jos"
Label6.Text = " Coln "
Label7.Text = " Espaol "
PictureBox1.Image = Image.FromFile("C:\ escc.jpg")
PictureBox2.Image = Image.FromFile("C:\ banc.jpg")
Case 1
Label4.Text = " Managua"
Label6.Text = " Cordoba"
Label7.Text = " Espaol "
PictureBox1.Image = Image.FromFile("C:\ escn.jpg")
PictureBox2.Image = Image.FromFile("C:\ bann.jpg")
Case 2
Label4.Text = " Tegucigalpa"
Label6.Text = " Lempira"
Label7.Text = " Espaol "
PictureBox1.Image = Image.FromFile("C:\ esch.jpg")
PictureBox2.Image = Image.FromFile("C:\ banh.jpg")
End Select
BOTON LIMPIAR
Label4.Text = ""
Label6.Text = ""
Label7.Text = ""
ListBox1.ClearSelected()
PictureBox1.Image = Nothing
PictureBox2.Image = Nothing
BOTON SALIR
Me.Close()
EJERCICIO # 24
AARON MOYOLEMA
Curso: 4to C 6
24
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
Label4.Text = " 15,00"
PictureBox1.Image = Image.FromFile("C:\ ib.jpg")
Case 1
Label4.Text = " 12,00"
PictureBox1.Image = Image.FromFile ("C:\ i.jpg")
Case 2
Label4.Text = " 13,00"
PictureBox1.Image = Image.FromFile ("C:\ lc.jpg")
Case 3
Label4.Text = " 14,00"
PictureBox1.Image = Image.FromFile ("C:\dg.jpg")
End Select
BOTON CALCULAR
Label6.Text = Val(Label4.Text) * Val(TextBox1.Text)
BOTON LIMPIAR
Label4.Text = ""
Label6.Text = ""
TextBox1.Text = ""
TextBox1.Focus()
ListBox1.ClearSelected()
PictureBox1.Image = Nothing
BOTON SALIR
Me.Close()
EJERCICIO # 25
AARON MOYOLEMA
Curso: 4to C 6
25
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
Label4.Text = " 16 de junio de 1903"
TextBox1.Text = " Ford, fue fundada con 28.000 dlares aportados por once
inversores, entre los que se inclua el socio que le dio nombre a la compaa, Henry
Ford, que por aquel entonces contaba con 40 aos de edad. En sus primeros aos, Ford
produca unos pocos
PictureBox1.Image = Image.FromFile("C:\ ford.jpg")
Case 1
Label4.Text = " 3 de noviembre de 1911 "
TextBox1.Text = "Chevrolet fue fundada por iniciativa del piloto de carreras
suizo-francs Louis Chevrolet, en colaboracin con el ingeniero francs Ettienne
Planche y ms tarde con el empresario William C. Durant, quien estara a cargo de la
financiacin del proyecto.
PictureBox1.Image = Image.FromFile("C:\ che.jpg")
Case 2
Label4.Text = " 1932 "
TextBox1.Text = " Como muchas otras compaas que han dejado una huella
en la historia, Toyota ha sido conformada sobre la base de un conjunto de valores y
principios
PictureBox1.Image = Image.FromFile("C:\ che.jpg")
End Select
BOTON LIMPIAR
TextBox1.Text = ""
ListBox1.ClearSelected()
PictureBox1.Image = Nothing
Label4.Text = ""
BOTON SALIR
Me.Close()
EJERCICIO # 26
AARON MOYOLEMA
Curso: 4to C 6
26
TIMER
Label11.Text = DateTime.Now.ToLongTimeString
FORMULARIO
Label10.Text = DateTime.Now.ToShortDateString
Label11.Text = DateTime.Now.ToLongTimeString
RectangleShape4.Visible = False
RectangleShape2.Visible = False
RectangleShape3.Visible = False
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
RectangleShape4.Visible = True
RectangleShape2.Visible = False
RectangleShape3.Visible = False
Case 1
RectangleShape3.Visible = True
RectangleShape2.Visible = False
RectangleShape4.Visible = False
Case 2
RectangleShape2.Visible = True
RectangleShape3.Visible = False
RectangleShape4.Visible = False
End Select
BOTON LIMPIAR
RectangleShape4.Visible = False
RectangleShape2.Visible = False
RectangleShape3.Visible = False
BOTON SALIR
AARON MOYOLEMA
Curso: 4to C 6
27
Me.Close()
EJERCICIO # 27
FORMULARIO
PictureBox1.Visible = False
PictureBox2.Visible = False
PictureBox3.Visible = False
ListBox1
Select Case ListBox1.SelectedIndex
Case 0
PictureBox1.Visible = True
PictureBox2.Visible = False
PictureBox3.Visible = False
PictureBox1.Image = Image.FromFile("C:\ cua.png")
MsgBox(" Dar clic en la seleccion")
Case 1
PictureBox1.Visible = False
PictureBox2.Visible = True
PictureBox3.Visible = False
PictureBox2.Image = Image.FromFile("C:\ cir.jpg")
MsgBox(" Dar clic en la seleccion")
Case 2
PictureBox1.Visible = False
PictureBox2.Visible = False
PictureBox3.Visible = True
PictureBox3.Image = Image.FromFile("C:\ rec.jpg")
MsgBox(" Dar clic en la seleccion")
End Select
PICTUREBOX1
AARON MOYOLEMA
Curso: 4to C 6
28
MsgBox("seleccion correcta")
PICTUREBOX2
MsgBox("seleccion correcta")
PICTUREBOX3
MsgBox("seleccion correcta")
EJERCICIO # 28
TIMER
Label11.Text = DateTime.Now.ToLongTimeString
FORMULARIO
Label10.Text = DateTime.Now.ToShortDateString
Label11.Text = DateTime.Now.ToLongTimeString
ComboBox1
Select Case ComboBox1.SelectedIndex
Case 0
Label4.Text = " Otawa"
Label6.Text = " Dolar"
Label7.Text = " Ingles "
AARON MOYOLEMA
Curso: 4to C 6
29
Case 1
Label4.Text = " Washinton"
Label6.Text = " Dolar"
Label7.Text = " Ingles "
Case 2
Label4.Text = " Mexico D.C"
Label6.Text = " Peso Mexicano"
Label7.Text = " Espaol "
End Select
BOTON LIMPIAR
Label4.Text = ""
Label6.Text = ""
Label7.Text = ""
ComboBox1.Text = ""
BOTON SALIR
Me.Close()
EJERCICIO # 29
TIMER
Label11.Text = DateTime.Now.ToLongTimeString
FORMULARIO
Label12.Text = DateTime.Now.ToShortDateString
Label11.Text = DateTime.Now.ToLongTimeString
ComboBox1
Select Case ComboBox1.SelectedIndex
Case 0
AARON MOYOLEMA
Curso: 4to C 6
30
Label4.Text = " Lisboa"
Label6.Text = " Euro "
Label7.Text = " Portugues "
PictureBox1.Image = Image.FromFile("C:\Users\cristina \Desktop\clase 19
parcial 2\escp.png")
PictureBox2.Image = Image.FromFile("C:\Users\cristina\Desktop\clase 19
parcial 2\bandp.jpg")
Case 1
Label4.Text = " Londres"
Label6.Text = " Libra"
Label7.Text = " Ingles "
PictureBox1.Image = Image.FromFile("C:\Users\ cristina \Desktop\clase 19
parcial 2\esci.png")
PictureBox2.Image = Image.FromFile("C:\Users\ cristina \Desktop\clase 19
parcial 2\bandi.jpg")
Case 2
Label4.Text = " Estocolmo"
Label6.Text = " Corona sueca"
Label7.Text = " sueco "
PictureBox1.Image = Image.FromFile("C:\Users\ cristina \Desktop\clase 19
parcial 2\escs.png")
PictureBox2.Image = Image.FromFile("C:\Users\ cristina \Desktop\clase 19
parcial 2\bands.jpg")
End Select
BOTON LIMPIAR
Label4.Text = ""
Label6.Text = ""
Label7.Text = ""
ComboBox1.Text = ""
PictureBox1.Image = Nothing
PictureBox2.Image = Nothing
BOTON SALIR
Me.Close()
EJERCICIO # 30
LLAMAR A FORMULARIO
AARON MOYOLEMA
Curso: 4to C 6
31
FORMULARIO 1
TIMER
Label11.Text = DateTime.Now.ToLongTimeString
FORMULARIO
Label10.Text = DateTime.Now.ToShortDateString
Label11.Text = DateTime.Now.ToLongTimeString
ComboBox1
Select Case ComboBox1.SelectedIndex
Case 0
Label3.Text = "Bienvenido Marcelo"
PictureBox1.Image = Image.FromFile("C:\Users\CRISTINA\Desktop\clase
20 parcial 2\1.jpg")
Case 1
Label3.Text = "Bienvenido Carla"
PictureBox1.Image = Image.FromFile("C:\Users\CRISTINA\Desktop\clase
20 parcial 2\2.jpg")
Case 2
Label3.Text = "Bienvenido Antonio"
PictureBox1.Image = Image.FromFile("C:\Users\CRISTINA\Desktop\clase
20 parcial 2\3.jpg")
End Select
BOTON INGRESAR
If TextBox1.Text = "sistema" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
End If
BOTON LIMPIAR
TextBox1.Text = ""
ComboBox1.Text = ""
PictureBox1.Image = Nothing
AARON MOYOLEMA
Curso: 4to C 6
32
Label3.Text = ""
BOTON SALIR
Me.Close()
FORMULARIO 2
TIMER
Label11.Text = DateTime.Now.ToLongTimeString
FORMULARIO
Label10.Text = DateTime.Now.ToShortDateString
Label11.Text = DateTime.Now.ToLongTimeString
BOTON REGRESAR
Me.Hide()
Form1.Show()
BOTON SALIR
Me.Close()
TALLER 31
FORMULARIO 1
ComboBox1
Select Case ComboBox1.SelectedIndex
Case 0
PictureBox1.Image = Image.FromFile("C:\1.jpg")
TextBox1.Focus()
AARON MOYOLEMA
Curso: 4to C 6
33
Case 1
PictureBox1.Image = Image.FromFile("C:\ 2.jpg")
TextBox1.Focus()
Case 2
PictureBox1.Image = Image.FromFile("C:\ 3.jpg")
TextBox1.Focus()
End Select
End Sub
BOTON INGRESAR
If TextBox1.Text = "123" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
TextBox1.Text = ""
TextBox1.Focus()
End If
End Sub
LIMPIAR
Label5.Text = ""
Label7.Text = ""
TextBox1.Text = ""
PictureBox1.Image = Nothing
listBox1.ClearSelected()
SALIR
SalirToolStripMenuItem.Click
FORMULARIO 2
FORMULARIO
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
BOTON1
Me.Hide()
Form1.Show()
INGRESAR
ListBox1.Items.Clear()
Dim a As Integer
a=2
Do While a <= 20
ListBox1.Items.Add(a)
a=a+2
Loop
AARON MOYOLEMA
Curso: 4to C 6
34
LIMPIAR
ComboBox1.Items.Clear()
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
End Sub
TALLER#32
FORMULARIO 1
Button1
Me.Hide()
Form1.Show()
ListBox1
ListBox1.SelectedIndexChanged
LIMPIAR
ListBox1.Items.Clear()
PROCESAR
Private Sub ProcesarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles ProcesarToolStripMenuItem.Click
ListBox1.Items.Clear()
Dim a As Integer
a = 10
Do While a <= 55
ListBox1.Items.Add(a)
a=a+5
Loop
SALIR
SalirToolStripMenuItem.Click
AARON MOYOLEMA
Curso: 4to C 6
35
FORMULARIO
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
FORMULARIO 2
TIMER
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
BUTTON1
Me.Hide()
Form1.Show()
COMBOBOX1
ComboBox1.Items.Clear()
Dim m As Integer
For m = 8 To 120 Step 8
ComboBox1.Items.Add(m)
LIMPIAR
ComboBox1.Items.Clear()
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
TALLER#33
AARON MOYOLEMA
Curso: 4to C 6
36
FORMULARIO 1
COMBOBOX1
Select Case ComboBox1.SelectedIndex
Case 0
PictureBox1.Image = Image.FromFile("C:\ 1.jpg")
TextBox1.Focus()
Case 1
PictureBox1.Image = Image.FromFile("C:\ 2.jpg")
TextBox1.Focus()
Case 2
PictureBox1.Image = Image.FromFile("C:\Users\ 3.jpg")
TextBox1.Focus()
End Select
End Sub
INGRESAR
If TextBox1.Text = "123" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
TextBox1.Text = ""
TextBox1.Focus()
End If
End Sub
LIMPIAR
TextBox1.Text = ""
ComboBox1.Text = ""
PictureBox1.Image = Nothing
FORMULARIO 2
FORMULARIO
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
AARON MOYOLEMA
Curso: 4to C 6
37
BUTTON
Form1.Show()
INGRESAR
ListBox1.Items.Clear()
Dim m As Integer
For m = 1 To 19 Step 2
ListBox1.Items.Add(m)
LIMPIAR
ListBox1.Items.Clear()
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
TALLER 34
FORMULARIO 1
ComboBox1
Select Case ComboBox1.SelectedIndex
Case 0
PictureBox1.Image = Image.FromFile("C:\ 1.jpg")
TextBox1.Focus()
Case 1
PictureBox1.Image = Image.FromFile("C:\ 2.jpg")
TextBox1.Focus()
Case 2
PictureBox1.Image = Image.FromFile("C:\ 3.jpg")
TextBox1.Focus()
AARON MOYOLEMA
Curso: 4to C 6
38
End Select
End Sub
BOTON INGRESAR
If TextBox1.Text = "123" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
TextBox1.Text = ""
TextBox1.Focus()
End If
End Sub
LIMPIAR
Label5.Text = ""
Label7.Text = ""
TextBox1.Text = ""
PictureBox1.Image = Nothing
listBox1.ClearSelected()
SALIR
SalirToolStripMenuItem.Click
FORMULARIO 2
FORMULARIO
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
BOTON1
Me.Hide()
Form1.Show()
INGRESAR
ComboBox1.Items.Clear()
Dim m As Integer
For m = 8 To 120 Step 8
ComboBox1.Items.Add(m)
LIMPIAR
ComboBox1.Items.Clear()
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
AARON MOYOLEMA
Curso: 4to C 6
39
TALLER#35
FORMULARIO 1
COMBOBOX1
Select Case ComboBox1.SelectedIndex
Case 0
PictureBox1.Image = Image.FromFile("C:\ 1.jpg")
TextBox1.Focus()
Case 1
PictureBox1.Image = Image.FromFile("C:\ 2.jpg")
TextBox1.Focus()
Case 2
PictureBox1.Image = Image.FromFile("C:\ 3.jpg")
TextBox1.Focus()
End Select
End Sub
INGRESAR
If TextBox1.Text = "123" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
TextBox1.Text = ""
TextBox1.Focus()
End If
End Sub
AARON MOYOLEMA
Curso: 4to C 6
40
LIMPIAR
TextBox1.Text = ""
ComboBox1.Text = ""
PictureBox1.Image = Nothing
FORMULARIO 2
FORMULARIO
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
INGRESAR
Me.Hide()
Form1.Show()
LIMPIAR
ComboBox1.Items.Clear()
Dim m As Integer
For m = 8 To 120 Step 8
ComboBox1.Items.Add(m)
Private Sub ToolStripButton2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ToolStripButton2.Click
ComboBox1.Items.Clear()
End Sub
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
AARON MOYOLEMA
Curso: 4to C 6
41
TALLER#36
FORMULARIO 1
Button1
Me.Hide()
Form1.Show()
ListBox1
ListBox1.SelectedIndexChanged
LIMPIAR
ListBox1.Items.Clear()
PROCESAR
Private Sub ProcesarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles ProcesarToolStripMenuItem.Click
ListBox1.Items.Clear()
Dim a As Integer
a = 10
Do While a <= 55
ListBox1.Items.Add(a)
a=a+5
Loop
SALIR
SalirToolStripMenuItem.Click
FORMULARIO
AARON MOYOLEMA
Curso: 4to C 6
42
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
FORMULARIO 2
TIMER
Label1.Text = DateTime.Now.ToLongDateString
Label2.Text = DateTime.Now.ToLongTimeString
BUTTON1
Me.Hide()
Form1.Show()
COMBOBOX1
ComboBox1.Items.Clear()
Dim m As Integer
For m = 8 To 120 Step 8
ComboBox1.Items.Add(m)
LIMPIAR
ComboBox1.Items.Clear()
TIMER
Label2.Text = DateTime.Now.ToLongTimeString
TALLER#37
FORMULARIO 1
AARON MOYOLEMA
Curso: 4to C 6
43
Button1
If ComboBox1.SelectedIndex = 0 And TextBox1.Text = "1234" Then
Me.Hide()
Form2.Show()
Else
If ComboBox1.SelectedIndex = 1 And TextBox1.Text = "aaron" Then
Me.Hide()
Form2.Show()
Else
If ComboBox1.SelectedIndex = 2 And TextBox1.Text = "2611" Then
Me.Hide()
Form2.Show()
Else
MsgBox("clave incorrecta")
TextBox1.Text = ""
TextBox1.Focus()
End If
End If
End If
ListBox1
ListBox1.SelectedIndexChanged
LIMPIAR
ListBox1.Items.Clear()
SALIR
SalirToolStripMenuItem.Click
FORMULARIO # 2
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
Label1.Text = DateTime.Now.ToLongDateString
AARON MOYOLEMA
Curso: 4to C 6
44
Label2.Text = DateTime.Now.ToLongTimeString
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form1.Show()
End Sub
Private Sub ProcesarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles ProcesarToolStripMenuItem.Click
ListBox1.Items.Add(TextBox1.Text)
TextBox1.Text = ""
End Sub
Private Sub
ListBox1.Items.Clear()
TextBox1.Text = ""
End Sub
AARON MOYOLEMA
Curso: 4to C 6