oForm = createobject( "form" ) for i = 1 to 10 lcName = "txt" + transform( i ) oForm.AddObject( lcName, "textbox" ) oControl = eval( "oForm." + lcName ) with oControl .Top = i * 25 .Visible = .t. endwith endforThere's no need to "use" the prg created by the class browser at all.