T
Trollpower
Dear NG,
ive got a custom control 'A' with a custom control 'B' in it, both
written in C#. Ive implemented the onClick Event for both the
Controls. If i click on the 'B'-Control the appropriate event fires.
But after doing some work i also want the onclick-event of Control 'A'
to fire also.
I need the OnClickEvent in Control 'A' to fire from within Control
'B', because there is some code in the parent form of Control 'A'
which needs to be done. And by firing the OnClick-Event for the
Control 'A', the appropriate Method in the parent form gets invoked.
As far as i know i can fire an event in VB.NET with RaiseEvent, but in
C# there is no such way.
If i click on the Control 'A' itself the Clickevent gets fired so the
code in the parent works also, but i dont know how to fire an event
from within an other event.
What do i have to do to invoke an event in a parent Control from with
in an other event? Any help is appreciated.
Greetings
Jens
ive got a custom control 'A' with a custom control 'B' in it, both
written in C#. Ive implemented the onClick Event for both the
Controls. If i click on the 'B'-Control the appropriate event fires.
But after doing some work i also want the onclick-event of Control 'A'
to fire also.
I need the OnClickEvent in Control 'A' to fire from within Control
'B', because there is some code in the parent form of Control 'A'
which needs to be done. And by firing the OnClick-Event for the
Control 'A', the appropriate Method in the parent form gets invoked.
As far as i know i can fire an event in VB.NET with RaiseEvent, but in
C# there is no such way.
If i click on the Control 'A' itself the Clickevent gets fired so the
code in the parent works also, but i dont know how to fire an event
from within an other event.
What do i have to do to invoke an event in a parent Control from with
in an other event? Any help is appreciated.
Greetings
Jens