' First I Dim'd an array of buttons
Sub Globals
Dim Buttons(4, 4) As Button
' Then I made a 3x4 grid of buttons
Sub Activity_Create
For y = 0 To 3
For x = 0 To 2
Dim b As Button
b.Initialize("button") 'All buttons share the same event sub
'etc.
'Then I did this, which I don't fully understand
Buttons(x, y) = b 'store a reference to this view
'Then this, as noted in the first post
Sub Button_Click
'Using Sender we find the button that raised this event
Dim b As Button
b = Sender