I come after this question. in my CustomControl
I want to handle all inner controls' MouseClick
events for example, then raise an event for the customControl, So I can handle it in every project that I use the control.
private void UserControl1_Load(object sender, EventArgs e)
{
foreach (var control in Controls)
{
((Control)control).MouseClick += UserControl1_Click;
}
}
private void UserControl1_Click(object sender, MouseEventArgs e)
{
// here I want to raise a MouseClick event for UserControl1?
}
How can I solve this problem? ( I think it maybe is like when we catch an exception then throw it again to somewhere else catch it?)