Is event bubbling possible in winforms

Y

Yogesh Patange

Hi

I have a UserControls which is containing two more usercontols inside it.
The inner user control has a button of which event is exposed by the inner
usercontrol. which can be trapped on outer user control.
But if I want to place this outer user control on the form and handle the
button event on it one way is to redefine this event on outer user control,
but this is not the good solution for me as the inner user control is added
to the outer control conditionally and the may not be always present.

Is there a mechanism of event bubbling as available in web forms?

Thanks in Advance,
Yogesh
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Yogesh,

AFAIK no. You should redeclare the event in the outer class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top