When I double click a component in the Design view, a click event is registered and an event handler is automatically generated. This is great when you want that, but if you double clicked the component by accident, it is a lot of work to undo the creation of the event handler. I would like to be able to undo all that (registering the event to the handler and the generation of the handler function itself) with one undo action (CTRL+Z or by clicking Edit=>Undo in the menu).