code clean up

  • Thread starter Thread starter Lynn
  • Start date Start date
L

Lynn

Hi,
I have added some buttons and boxes on the VB.net form. After deleting these
buttons and boxes from the form, I find that the code is still there.

Does VB.net have a feature to clean up these unwanted codes?
thanks
 
Lynn said:
I have added some buttons and boxes on the VB.net form. After deleting
these
buttons and boxes from the form, I find that the code is still there.

Does VB.net have a feature to clean up these unwanted codes?

Are you referrint to the event handling code? It's by design that this code
doesn't get deleted automatically when the controls are removed from the
form.
 
Hi,
I have added some buttons and boxes on the VB.net form. After deleting these
buttons and boxes from the form, I find that the code is still there.

Does VB.net have a feature to clean up these unwanted codes?
thanks
If you remove the code from the events BEFORE you remove the controls,
they will be removed. If there is any code in the body of the event
it will not be removed.

Either way, you will end up having to manually remove code from the
form.

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top