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
  WebTextField(c).text=""
end if

…etc[/code]

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?

Window.Control.