Forum Discussion
cbruck_1
15 years agoOccasional Contributor
FindChild on an entire page can be fairly slow. The solution I've used for this in the past is to do something akin to what AQA is suggesting, which is to narrow the search. If your page has 5 main panels, for instance, you can gather the panel that the control is a part of when you first identify it, so that you can either directly address the panel (if it's static), or use a FindChild with a low depth value to get the panel, then FindChild from there to get the specific control.
It really depends on the structure of your page (ours had 5 panels, which were all children of the Form, which made finding them quick - and that cut down the raw number of objects we had to search significantly).
It really depends on the structure of your page (ours had 5 panels, which were all children of the Form, which made finding them quick - and that cut down the raw number of objects we had to search significantly).
Related Content
- 12 years ago
- 10 years ago
- 10 months ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago