2
Answers

Custom control event

PALANISELVAM M

PALANISELVAM M

17y
2.2k
1
Hi,
 I have a class called LISTENER, in this class i have 2 properties called Subject,  Name and 1 event
public event MessageReceivedEventHandler ListenerMessageReceivedEvent;

Now i am creating a custom control and in that control i am adding a property called LISTENERS this property contains collection of LISTENER class.

Now i am placing this control in windows form and adding LISTENERs object properties. I am able to add N number of LISTENER object. But i am not able to bring the event "ListenerMessageReceivedEvent".

Can anyone help me on this?

Thanks in Advance.
Pals.
Answers (2)