Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Dim a As Integer = 0
Dim b As Integer = 0
Dim c As Integer = 0
Dim result As String = ""
Dim large As Integer = 0
a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
result = TextBox4.Text
If a > b And a > c Then
TextBox4.Text = a
ElseIf b > a And b > c Then
TextBox4.Text = b
ElseIf c > a And c > b Then
TextBox4.Text = c

End If

End Sub
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 = ""

End Sub
End Class

You might also like