Form Designer and Dispose()
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, When you create a Form with the Designer, VS2005 (maybe earlier?) adds code to override the Dipose(bool) method as follows:
protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
Every time I step through this function in the debugger, components always == null. Am I supposed to be allocating components and adding items to it manually, so that they will be disposed?