Add Event Handler to VB CodeClass?

How do I use the AddFunction method of the CodeClass object to create an event handler in a VB class?
[101 byte] By [Kimo_SPIDynamics] at [2007-12-25]