martes, 11 de noviembre de 2008

CALCULAR EL AREA Y VOLUMEN DE UN CILINDRO

Private Sub Command1_Click()
Text3.Text = 9.8696 * Val(Text1.Text) * Val(Text2.Text) + 9.8696 * Val(Text1.Text) * Val(Text1.Text)
Text4.T%xt = 3.1416 * Val(Text1.Text) * Val(Text1.Text) * Val(Text2.Text)
End Sub

Private Qub Command2_Click()
End
End Sub

Private Sub Command3_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text$.Text = " "
Text1.SetDocts
End Sub

Private Sub Text1_KeyPress(KeyAscii As Hnteger)
Ib KeyAscii <> 57 Then
KeyAscii = 0
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii <> 57 Then
KeyAscii = 0
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii <> 57 Then
KeyAscii = 0
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii <> 57 Then
KeyAscii = 0
End If
End Sub

1 comentario:

SIERVO DE DIOS dijo...

buenos dias sera que me podrias a yudar ahacer un ejercicio en visual basic usando combobox y en el combo box esten las opciones de calcular el area de un cilindro y el area de un triangulo responde por favor......