TexasAggie
06-16-2006, 09:16 AM
I have two control arrays (label and led). I need to get the index of the led when I click on one so I know what action to perform. How is this possible?
This is my event handler:
Public Sub TCLedClickEvent(ByVal sender As Object, ByVal e As EventArgs)
Dim TCLed As Led = DirectCast(sender, Led)
TCLed.Value = True
End Sub
Thanks.
This is my event handler:
Public Sub TCLedClickEvent(ByVal sender As Object, ByVal e As EventArgs)
Dim TCLed As Led = DirectCast(sender, Led)
TCLed.Value = True
End Sub
Thanks.