VB.NET:
For Accounts As Integer = 1 To 10
If Cbx1.Checked = True Then Call Login1()
Next
How do I use the & to do this so where the number 1 is I can replace with Accounts variable?
For Accounts As Integer = 1 To 10
If Cbx1.Checked = True Then Call Login1()
Next
For Accounts as integer = 1 to 10
Dim ctlstr as String = "Cbx" & Accounts
Dim cb as CheckBox = DirectCast(Me.Controls(ctlstr), CheckBox)
If cb.checked = True Then Call Login1()
Next Accounts