control at index

In web eddtion I can call the following to loop the the control on teh page:

[code] dim i as integer
dim c as WebControl
for i = 0 to myWebPage.ControlCount-1

c = WebControl(myWebPage.ControlAtIndex(i))

if c isa WebTextField then
end if


Bu tin a desktop App I wish to lop thru the controls in a window…I can’t seem to call this:

for i = 0 to MyWindow.ControlCount-1 c = Control(MyWindow..ControlAtIndex(i)) <<------Here

What is the desktop equivalent of ControlAtIndex?