TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gavriel ankri
NA
39
48.6k
how to use event from another class
Apr 22 2011 5:09 PM
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 !
Reply
Answers (
1
)
Output of a new form on top of main form
how to use progress bar to indicate database progress