hello
I have 2 classes : ChatServer and ClientConnected
I am trying to fire an event from windows form. usually I am doing like this:
private void Form1_Load(object sender, EventArgs e)
{
cc = new ChatServer();
cc.FirstMsgEvent += new FirstMsg(cc_firesMsgEvent);
}
However, in this case my event is on the other class - ClientConnected and I cant do "cc = new ClientConnected".
Is there another way to fire this event from the Form1_Load function ?
thank you !
How to use event from another class
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Apr 22, 2011, 1:57 PM EDT