In PHP and a few other languages, I know that there is a way for a program to dynamically call the name of a control using Visual Basic.NET?
For example: if you have a control named txtQuestionValue15.text on a WinForm, is there a way to set up some kind of loop to go back and get through 1 through 14 and disable them, or do I have to manually edit in.
I was thinking of using something like this SELECT Case statement to try:
Select Case trkNoOfQuestions.Value
Case 1
Case 2
Case 3
Case 4
Case 5
Case 6
Case 7
Case 8
Case 9
Case 10
Case 11
Case 12
Case 13
Case 14
Case 15
' Enable Question 15
txtQuestionTL15.Enabled = True
txtQuestionTL15.Text = 45
txtQuestionValue15.Enabled = True
txtQuestionValue15.Text = 1000000
End Select
TLandValuecontrols.DataGridViewcontrol