Basically, you want your constructor to be as light as possible. I am trying to put most of the things in a load event handler, as the user interface elements were created and can be used at this time. However, I usually create class objects, etc. In the constructor, since it is actually part of the construction of the object. Sometimes you canβt put things in one place or another, but at the time you can, you just have to put them where it seems most suitable.
Ty. Nov 05 '08 at 5:43 2008-11-05 05:43
source share