Greetings,
I've got a problem that for the life of me I can't find a workable
solution.
In a nutshell, I have 6 label controls on a UserControl. Clicking any
of the labels fires the Click Event for the associated label.
I have created a class to build an 'array' of the user control. In the
class I add a newe instance of the UserControl and add a handler for
the Click event of the user control.
Everything works fine. If I click on a label the click event in the
user control fires for the label. If I click on the User Control the
class picks up and fires the Click event for the control.
What I now need to do is if one of the labels is click, I also want to
fire the underlying User Control click event. Just calling
UserControl_Click from Label1_Click does not fire the click event for
the user control so that the class can detect it.
How can I fire both the Label1_Click event and the UserControl_Click
event?
Thanks
I've got a problem that for the life of me I can't find a workable
solution.
In a nutshell, I have 6 label controls on a UserControl. Clicking any
of the labels fires the Click Event for the associated label.
I have created a class to build an 'array' of the user control. In the
class I add a newe instance of the UserControl and add a handler for
the Click event of the user control.
Everything works fine. If I click on a label the click event in the
user control fires for the label. If I click on the User Control the
class picks up and fires the Click event for the control.
What I now need to do is if one of the labels is click, I also want to
fire the underlying User Control click event. Just calling
UserControl_Click from Label1_Click does not fire the click event for
the user control so that the class can detect it.
How can I fire both the Label1_Click event and the UserControl_Click
event?
Thanks