From Xojo Documentation
Used to iterate through the controls on a window.
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.
Loop through all the controls on a Window and disable only the textfields: