Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 6, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Ensure Code Is Deleted When A Control Is Deleted

When a control is deleted from a form, any code behind that control is not deleted. It still exists in the code in the General area. Such stranded code might not be a problem except that it increases the size of your EXE, consumes memory, and makes for sloppy work. After deletion, if a control is placed on the form with the same name as the deleted control, the stranded code will relocate to the new control, as long as the event name is the same. A programmer that does not want this code left in (and who would?) must manually delete each instance of stranded code.
Doug Haynes
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date