title: VB.NET - How do I use a variable in another variables name?
body: <p>How would I do something similar to this:</p>
  
  <pre><code> Dim amnt As Integer
     For x As Integer = 1 To 6
          If amnt[x] = 0 Then
            btn[x].Enabled = False
          End If
      Next x
  </code></pre>
  
  <p>What I mean is, can I reference a variable by using another variable in the name. For example, if "x" were to be 4, then I want to change the button "btn4" to .Enabled = False, but I also want to be able to change the button that I'm changing properties of. So like </p>
  
  <pre><code> If (variablesName &amp; x) = 0 Then
  </code></pre>
  
  <p>If x is 4 then it should look like this</p>
  
  <pre><code>If variablesName4 = 0 Then
  </code></pre>