title: "No default property"
body: <p>I have entered in the lines</p>
  
  <pre><code>Private Sub tmrAnalogueCounter_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrAnalogueCounter.Tick
          AnalogCounter += 1
          If AnalogCounter &gt;= 17 Then
              tmrAnalogueCounter.Enabled = False
          End If
          pboTimer.Image = My.Resources.ResourceManager("Timer" &amp; AnalogCounter)
  End Sub
  </code></pre>
  
  <p>Unfortunately, I'm getting the error "Class 'System.Resources.ResourceManager' cannot be indexed because it has no default property.</p>
  
  <p>I don't understand why, "pboTimer.Image = My.ResourceManager("Timer" &amp; AnalogCounter)" replaced</p>
  
  <pre><code>Select Case AnalogCounter
          Case 1 : pboTimer.Image = My.Resources.Timer1
          Case 2 : pboTimer.Image = My.Resources.Timer2
          Case 3 : pboTimer.Image = My.Resources.Timer3
          Case 4 : pboTimer.Image = My.Resources.Timer4
          Case 5 : pboTimer.Image = My.Resources.Timer5
          Case 6 : pboTimer.Image = My.Resources.Timer6
          Case 7 : pboTimer.Image = My.Resources.Timer7
          Case 8 : pboTimer.Image = My.Resources.Timer8
          Case 9 : pboTimer.Image = My.Resources.Timer9
          Case 10 : pboTimer.Image = My.Resources.Timer10
          Case 11 : pboTimer.Image = My.Resources.Timer11
          Case 12 : pboTimer.Image = My.Resources.Timer12
          Case 13 : pboTimer.Image = My.Resources.Timer13
          Case 14 : pboTimer.Image = My.Resources.Timer14
          Case 15 : pboTimer.Image = My.Resources.Timer15
          Case 16 : pboTimer.Image = My.Resources.Timer16
          Case 17 : pboTimer.Image = My.Resources.Timer17
          Case Else : tmrAnalogueCounter.Enabled = False
  End Select
  </code></pre>
  
  <p>Any idea how to fix it?</p>