title: Generating labels and storing variables?
body: <p>So I generate 100 labels with the following:</p>
  
  <pre><code>Sub Load_Pieces()
      For i = 0 To 9
          For i1 = 0 To 9
              Pieces(i1, i) = New Label
              Pieces(i1, i).Text = ""
              Pieces(i1, i).Location = New Point((i1 * 20) + 13, (i * 20) + 13)
  
              Pieces(i1, i).Size = New Size(20, 20)
              Pieces(i1, i).BorderStyle = BorderStyle.FixedSingle
              Pieces(i1, i).Font = New Font("Arial", 13)
              Pieces(i1, i).BackColor = Color.White
              AddHandler Pieces(i1, i).Click, AddressOf Piece_Clicked
              Me.Controls.Add(Pieces(i1, i))
          Next
      Next
  End Sub
  </code></pre>
  
  <p>What I need to do is for the labels to hold three or four individual variables each(all integers), and for the <code>Piece_Clicked</code> function to be able to read the variables of both the piece that was clicked and of adjacent tiles(or any tile, for that matter).</p>
  
  <p><strong>Example:</strong> Piece 66 is clicked, it increases the number piece 65 is displaying by one, and displays the result on piece 67.</p>
  
  <p>I figure that, among the other variables, the labels would need to be assigned identification numbers that would allow them to work out which labels are adjacent.
  I also assume the labels themselves can't actually store variables, so would I need to use an array or dictionary that stores the numbers, and clicking a label accesses the corresponding array/dictionary entries?</p>