Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

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.

 

 

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