J
John B
I have a collection of objects (eg Forms) , each of which contains another
collection (eg Controls). When I come to fill the Control collections at
startup, I fill each one in turn using a Form.GetControls(FormID) call. This
puts the call where I think it is best placed (In the Form class), but am
unsure about the efficiency of it. Would I be better off making one "global"
call, retuning all the Controls and then filling each of the Form.Controls
collections.
I know I could probably test it somehow, but does anyone know what the best
way to do it would be?
Ideas welcome.
Thanks
collection (eg Controls). When I come to fill the Control collections at
startup, I fill each one in turn using a Form.GetControls(FormID) call. This
puts the call where I think it is best placed (In the Form class), but am
unsure about the efficiency of it. Would I be better off making one "global"
call, retuning all the Controls and then filling each of the Form.Controls
collections.
I know I could probably test it somehow, but does anyone know what the best
way to do it would be?
Ideas welcome.
Thanks