fmartinez78ovi
Member
- Joined
- Sep 14, 2020
- Messages
- 11
- Programming Experience
- 5-10
Hi group,
I would like to write similar code from Visual Basic to C#, this is the code from Visual Basic:
Any advice how to translate this to C# will be appreciated.
Kind regards,
Francisco Mtz.
I would like to write similar code from Visual Basic to C#, this is the code from Visual Basic:
C#:
For i = 1 To 14
If GroupBox6.Controls("CmbR" & CInt(i)).Text = GroupBox1.Controls("txbCom11" & CInt(i)).Text Then
contador_aciertos_1 = contador_aciertos_1 + 1
GroupBox1.Controls("txbCom11" & CInt(i)).BackColor = Color.Sienna
Else
GroupBox1.Controls("txbCom11" & CInt(i)).BackColor = Color.NavajoWhite
End If
Next
Any advice how to translate this to C# will be appreciated.
Kind regards,
Francisco Mtz.
Last edited by a moderator: