Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Código
Option Explicit
Private Sub Boton_Click()
Etiqueta.Caption = Texto.Text
End Sub
1
Ejercicio 2
Código
Option Explicit
2
Ejercicio 3
Código
Option Explicit
Private Sub Form_Load()
Dibujo.Top = (Form1.ScaleHeight - Dibujo.Height) / 2
End Sub
Private Sub Option1_Click()
Dibujo.Shape = 0
End Sub
Private Sub Option2_Click()
Dibujo.Shape = 1
End Sub
Private Sub Option3_Click()
Dibujo.Shape = 2
End Sub
Private Sub Option4_Click()
Dibujo.Shape = 3
End Sub
Private Sub Boton_Click()
End
End Sub
3
Ejercicio 4
Agregar en Herramientas>
Editor de menús…
txtPulgada
txtCm
hsbCantidad
Código
Option Explicit
4
Ejercicio 5
Elemento(txtbox)
Texto:Ingresá una tarea btnAgregar
ToolTipText:Acá tipeá la
tarea para agregar btnSalir
btnEliminar
Lista(Listbox)
ToolTipText:Acá tipeá la
Cant(label) – centrada
tarea para agregar
Caption vacío
Activo(label) – centrada
Label1 Label2 Caption vacío
Código
5
Ejercicio 6
Modificá el ejercicio anterior eliminando el Listbox y agregando un ComboBox con Nombre Lista (para que el
código siga funcionando) y el Texto vacío. Ejecutá y analizá las diferencias.
Probá modificando la propiedad Style y ejecutalo nuevamente.
6
Ejercicio 7
Avion(Image)
Picture: Classic2.wmf
Stretch:True Linea (Line)
BorderWidth:5
btnInicio
Caption: Inicio
btnSalir
Caption: Salir
btnParar Timer1(Timer)
Caption: Parar Enabled: False
Interval: 200
Código
Modificá el proyecto agregando una barra de desplazamiento y un cuadro de texto que permita aumentar o disminuir
la velocidad del movimiento.
7
Ejercicio 8
lblTexto1
Tahoma 14 - Centrado
lblNombre
lblTexto2
Tahoma 14 - Centrado
Código
Option Explicit
8
Extra
Mensaje
Boton2
Boton1
Código
Option Explicit
Private Sub Boton1_Click()
End
End Sub
Private Sub Boton2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Boton2.Move CInt(Rnd * (Width - Boton2.Width)), CInt(Rnd * (Height - Boton2.Height))
End Sub
Private Sub Boton2_Click()
MsgBox "Bueno, hay que seguir hasta que termine" & Chr(13) & "la tercera hora. Aprovechalo", , "Respuesta"
End Sub