Designer Defaults
-
Hi all, This may be a rather unusual question but as I'm a newbie in C#, I would be grateful if someone can please elaborate. Well, what I want to know is that why is the
components
variable added everytime in the class even when it is not used anywhere else. Every class generated using the Designer in VS.NET adds this variable in the class. Why? What is the purpose? Thx, Gurmeet
BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
-
Hi all, This may be a rather unusual question but as I'm a newbie in C#, I would be grateful if someone can please elaborate. Well, what I want to know is that why is the
components
variable added everytime in the class even when it is not used anywhere else. Every class generated using the Designer in VS.NET adds this variable in the class. Why? What is the purpose? Thx, Gurmeet
BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
you should add all your disposable items to the components IContainer.when calling IContainer.Dispose() it will call Dispose() on all the components it contains. Its merely there for ease of use, like the Events protected property in COntrols.