static void DoIt() { MyEventThing thing = new MyEventThing(); thing.Tick += new EventHandler(thing_Tick); Thread.Sleep(5000); thing.Dispose(); }