DesktopWindow.Controls
From Xojo Documentation
Method
Used to iterate through the controls on a window.
Notes
All controls on the window are returned as a the DesktopControl base type. You can use the IsA operator to check the specific type to see if the control is a button, label, etc.
Sample Code
Loop through all the controls on a Window and disable only the textfields: