In a class derived off of the Component class (usually derived off of Form, Control or UserControl) the override of the Dispose(base) method should always call this.components.Dispose(). That is, if the components field exists and had anything added to it in the InitializeComponent method. If the Dispose method isn't called on the components field, then non-visual components may not be disposed correctly.

Last edited Sep 6, 2008 at 9:51 PM by JeffLeBert, version 1

Comments

No comments yet.