The sample code here is another token sample that serves no purpose except allows the author to say that there is sample code. It should show how to make "the event handler is associated with the Idle event" as well as detach the event handler. Certainly people that know how to do that don't need a sample, in which case there is no need for a sample, but if there is a sample, it should be useful for those that need a sample.