Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INFO-503
RAMOS GRANDE
PRACTICA 2
SE LE AGREGAN OTROS DOS FORMULARIOS PARA QUE EL USUARIO RESIVA UNA RESPUESTA
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim a, b, c As Decimal Dim raiz, x1, x2 As Single
Form2.Visible = True Me.Visible = False End If If raiz > 0 Then x1 = (raiz + b) / (2 * a) x2 = raiz - b / (2 * a) Label3.Text = Str(x1) Label4.Text = Str(x2)
End If If raiz < 0 Then Form3.Visible = True Me.Visible = False End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Visible = True Me.Visible = False End Sub End Class
PANTAYAS DE ERROR