Dim A, B, C, D As Integer A = TextBox1.Text B = TextBox2.Text C = TextBox3.Text D = TextBox4.Text If A > B Then If A > C Then If A > D Then TextBox5.Text Else TextBox5.Text End If Else If C > D Then TextBox5.Text Else TextBox5.Text End If End If Else If B > C Then If B > D Then TextBox5.Text Else TextBox5.Text End If Else If C > D Then TextBox5.Text Else TextBox5.Text End If End If End If End Sub = "Mayor es A" = "Mayor es D" = "Mayor es D" = "Mayor es C" = "Mayor es B" = "Mayor es D" = "Mayor es c" = "Mayor es D" Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Text = " " TextBox2.Text = " " TextBox3.Text = " " TextBox4.Text = " " TextBox5.Text = " " End Sub