I'm actually trying to do something with a label, not a CommandButton but without knowing a more elegant way of referencing which particular control is being clicked within the control array, the only workaround I could really think of would be to do something like this:
|
Jabaco Source
|
1
|
buttons(i).tag=i
|
within
Form_Load()
and then:
|
Jabaco Source
|
1
|
buttons(cint(btn.tag)).backcolor=vbRed
|
in
Public Sub actionPerformed(arg2 As ActionEvent)