I have 3 labels on a panel that I want to respond to a click event. This is the hierarchy of the Objects:
Activity
I am able to generate a click event for Panel2 when I click on Label1/2/3, but if I use the Label name itself (e.g. Label1_Click), I do not get a click event.
Labels1/2/3 are added programmatically, not placed in Designer. Panel1 and Panel2 were placed in Designer. Is there some limitation to only allowing Click Events on items placed in Designer?
Activity
Panel1
(e.g.: Labels 1,2,3 are on Panel2 which is on Panel1 which is part of Activity).Panel2
Label1
Label2
Label3
Label2
Label3
I am able to generate a click event for Panel2 when I click on Label1/2/3, but if I use the Label name itself (e.g. Label1_Click), I do not get a click event.
Labels1/2/3 are added programmatically, not placed in Designer. Panel1 and Panel2 were placed in Designer. Is there some limitation to only allowing Click Events on items placed in Designer?