Checking for the Biggest Number
Suppose I have 5 Integers(A, B, C, D, and E) and 5 Textboxes.
When the program run, the user is going to input 5 numbers to those 5 textboxes. When a button is pressed, a label will show up and write the textbox number with the biggest number.
Thanks!
Re: Checking for the Biggest Number
Code:
Dim Arr() As Integer = { _
CInt(TextBox1.Text), _
CInt(TextBox2.Text), _
CInt(TextBox3.Text), _
CInt(TextBox4.Text), _
CInt(TextBox5.Text) _
}
Label1.Text = Arr.Max.ToString()