Question

3
Replies
26
Views
Close popover
Matthew Ashley (MatthewA4496)
CenturyLink

CenturyLink
US
MatthewA4496 Member since 2018 5 posts
CenturyLink
Posted: November 17, 2020
Last activity: November 20, 2020

RDA - WinForm - How to reliably iterate through all controls under parent WinForm (Or select controls of specific type)

I've run into an issue where attempting to loop recursively down the child controls from a top-level WinForm will miss certain controls, namely TreeViews. If I add a panel as the first child of the WinForm, then recursively loop through all the controls of the WinForm AND the first-child Panel, all controls are reached. @jeffbadger, is there a better way to do this?

 

Thanks,

Matthew Ashley

Pega Robotic Desktop Automation 19.1 Robotic Process Automation Technology Services