Documentos de Académico
Documentos de Profesional
Documentos de Cultura
EJEMPLO # 1
EJEMPLO
# 2
EJEMPLO # 3
EJEMPLO # 4
TextBox3.Text = c
End Sub
_________________________________________________________________________
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As Syste
m.EventArgs) Handles Button5.Click
Dim a, b, c As Single
a = TextBox1.Text
b = TextBox2.Text
c = a ^ b
TextBox3.Text = c
End Sub
_________________________________________________________________________
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button6.Click
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
End Sub
_________________________________________________________________________
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button7.Click
End
End Sub
End Class
EJEMPLO # 5
EJEMPLO # 6
EJEMPLO # 8
EJEMPLO # 9
EJEMPLO # 10
End If
End If
End If
End Sub
_________________________________________________________________________
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button1.Click
If ComboBox1.Text = "Aceleracin" Then
Dim a, vf, vo, t As Single
vf = TextBox1.Text
vo = TextBox2.Text
t = TextBox3.Text
a = (vf - Vo) / t
TextBox4.Text = a
Else
If ComboBox1.Text = "Velocidad inicial (Vo)" Then
Dim vo, vf, a, t As Single
vf = TextBox1.Text
a = TextBox2.Text
t = TextBox3.Text
vo = vf - (a * t)
TextBox4.Text = vo
Else
If ComboBox1.Text = "Velocidad final (Vf)" Then
Dim vf, vo, a, t As Single
vo = TextBox1.Text
a = TextBox2.Text
t = TextBox3.Text
vf = vo + (a * t)
TextBox4.Text = vf
End If
End If
End If
End Sub
_________________________________________________________________________
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button2.Click
TextBox1.Text = "
"
TextBox2.Text = "
"
TextBox3.Text = "
"
TextBox4.Text = "
"
End Sub
_________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button3.Click
End
End Sub
End Class
_________________________________________________________________________
EJEMPLO # 11
EJEMPLO # 12
EJEMPLO # 13
"
TextBox2.Text = "
"
TextBox3.Text = "
"
End Sub
Lic. Edgar de la Cruz Garca.
________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button3.Click
End
End Sub
________________________________________________________________________
EJEMPLO # 14
"
TextBox2.Text = "
"
Lic. Edgar de la Cruz Garca.
TextBox3.Text = "
"
TextBox4.Text = "
"
TextBox5.Text = "
"
End Sub
________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As Syste
m.EventArgs) Handles Button3.Click
End
End Sub
________________________________________________________________________
EJEMPLO # 15
"
TextBox2.Text = "
"
TextBox3.Text = "
"
TextBox4.Text = "
"
TextBox5.Text = "
"
End Sub
________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button3.Click
End
End Sub
________________________________________________________________________
EJEMPLO # 16
Estructura Select - Case
TextBox2.Text = "Agosto"
Case "9"
TextBox2.Text = "Septiembre"
Case "10"
TextBox2.Text = "Octubre"
Case "11"
TextBox2.Text = "Noviembre"
Case "12"
TextBox2.Text = "Diciembre"
Case Else
TextBox2.Text = "Digite dato correctamente"
End Select
End Sub
________________________________________________________________________
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button2.Click
TextBox1.Text = "
"
TextBox2.Text = "
"
End Sub
________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button3.Click
End
End Sub
________________________________________________________________________
EJEMPLO # 17
Formulario usando variables y caja de mensaje
Ejecucin
________________________________________________________________________
EJEMPLO # 18
Cdigo para cambiar el color a
un formulario
"
TextBox2.Text = "
"
TextBox3.Text = "
"
End Sub
________________________________________________________________________
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As S
ystem.EventArgs) Handles Button3.Click
End
End Sub