Re: Event question
- From: "Rainer Queck" <Rainer.Queck@xxxxxxxxxxx>
- Date: Mon, 18 Jul 2005 14:59:53 +0200
Hi Johann,
thanks for answering!
I (at leas I am not aware of...) don't override the event.
In the base class (which is abstract) I declared the abstract method:
public abstract void MsgSent();
My intention is that every derived class must implement this mehtod.
The purpose of this method is to call all assigned delegates - OnMsgSent -
declared as event handles as previously shown.
Regards
Rainer
"Johann Blake" <johannblake@xxxxxxxxx> schrieb im Newsbeitrag
news:1121691122.674236.4660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I don't believe that you can override an event. Since OnMsgSent is
> defined as an even using:
>
> public event EventHandler OnMsgSent;
>
> it must always be defined in this manner. You cannot create a *method*
> called OnMsgSent. A method and an event are two different things.
>
> What exactly do you want to accomplish?
>
> Best Regards
> Johann Blake
>
.
- Follow-Ups:
- Re: Event question
- From: Johann Blake
- Re: Event question
- References:
- Event question
- From: Rainer Queck
- Re: Event question
- From: Johann Blake
- Event question
- Prev by Date: Re: Active are for controls
- Next by Date: Re: Simulate Keypresses
- Previous by thread: Re: Event question
- Next by thread: Re: Event question
- Index(es):
Relevant Pages
|