The only way it will automatically delete the event handler is if you've never put any code into it. Once there's code in the event handler, the IDE won't automatically delete it.
~~Bonnie
>hi,
>
>How can i delete the codes after i delete say a command button from the form.
>
>eg:
>I add a commandbutton and the write code for the click
>then i wish to delete the commandbutton and delete the same after rightclick on the control and delete. But when i view the code for the click is still there.
>How do i delete all the codes when i delete the control ? the click code ,the handler code is there even after i delete the control. I have to manually remove it and it takes time.
>any shortcuts ? any ideas ?
>
>TIA
>suhashegde