in this image
Textbox1, textbox1_value1, textbox1_value2
Textbox2, textbox2_value1, textbox2_value2
Textbox3, textbox3_value1, textbox3_value2
Textbox4, textbox4_value1, textbox4_value2
Textbox5, textbox5_value1, textbox5_value2
if I click on the button the value will be added to the second-panel textboxes according to the highest to lowest value of the Textbox#_Value1 but if the Textbox#_value1 = textbox#_Value(any two value id equal) then it will rank according to the lower value of textbox#_value2 of this equal value.
is it possible? any Idea? please help me. Thank you.
I am struggling with transfer the name according to the score.
enter image description here
Dim inputTextBoxes() As TextBox = {Player5Run, Player1Run, Player2Run, Player4Run, Player3Run}
Dim values(4) As Integer
For x As Integer = 0 To 4
Dim v As Integer
Integer.TryParse(inputTextBoxes(x).Text, v)
values(x) = v
Next
Array.Sort(values)
Array.Reverse(values)
Dim outputTextBoxes() As TextBox = {Player6Run, Player7Run, Player8Run, Player9Run, Player10Run}
For x As Integer = 0 To 4
outputTextBoxes(x).Text = values(x).ToString
Next
I am struggling with transferring the name and value2 according to the score. In the image its just ranks the Value 1 but does not show the name and value 2 on the other two columns.
enter image description here
user26532807 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.