I am creating multiple labels on a form dynamically. Essentially then they become an array.
Label(0)
Label(1)
Label(2)
etc...
I am also adding a handler for each one
-
Addhandler label(I).Click, AddressOf ShowPix
-
The sub "ShowPix" is common to all of them because I do not know how many labels will be created.
So now inside of Showpix
-
Private Sub ShowPix()
-
'how do I determine which dynamically created label sent the click event...
-
End Sub
-
-
So how do I determine which label the click event came from?
I have tried Me.ActiveControl.tag (I previously set the tag for each label appropriately - but that doesn't always work.