Disabling the event handlers in the designer