Public Class Private Sub Byval As Byval As Handles End Sub Private Sub Byval As Byval As Handles Me
Public Class Private Sub Byval As Byval As Handles End Sub Private Sub Byval As Byval As Handles Me
End Sub
End Sub
End Sub
If ((masauno > 0) And (masados > 0) And (distancia > 0)) Then
Txtfuerza.Text = ((6.67384 / 100000000000) * (masauno) * (masados) /
((distancia) * (distancia)))
Else
MsgBox("INGRESE SOLO VALORES POSITIVOS", MsgBoxStyle.Information,
"SISTEMA DE INGENIERIA")
Txtmasauno.Text = ""
Txtmasados.Text = ""
Txtdistancia.Text = ""
Txtmasauno.Focus()
End If
End Sub
End Sub
End Class
Public Class Frmtuberias
End Sub
If ((caudal > 0) And (diametro > 0) And (longitud > 0)) Then
perdida = ((9.84) * (1 / 10000) * ((caudal) ^ 1.756) * (longitud)) /
((diametro) ^ 4.789)
Txtperdida.Text = perdida
Else
MsgBox("INGRESE SOLO VALORES POSITIVOS", MsgBoxStyle.Information,
"SISTEMA DE INGENIERIA")
Txtcaudal.Text = ""
Txtdiametro.Text = ""
Txtlongitud.Text = ""
Txtcaudal.Focus()
End If
'Txtperdida.Text = perdida
End Sub
Txtcaudal.Focus()
End Sub
End Class