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
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
So how do I determine which label the click event came from?
I have tried Me.ActiveContro l.tag (I previously set the tag for each label appropriately - but that doesn't always work.
Label(0)
Label(1)
Label(2)
etc...
I am also adding a handler for each one
Code:
Addhandler label(I).Click, AddressOf ShowPix
So now inside of Showpix
Code:
Private Sub ShowPix()
'how do I determine which dynamically created label sent the click event...
End Sub
I have tried Me.ActiveContro l.tag (I previously set the tag for each label appropriately - but that doesn't always work.
Comment