public void foo() { GroupChat gc = new GroupChat(); gc.MessageReceived += Gc_MessageReceived; // wire up the event gc.Start(); }