YourForm.AddObject("txtPrinter1","textbox") YourForm.txtPrinter1.Top = lnTop YourForm.txtPrinter1.Left = 10 YourForm.txtPrinter1.Visible = .T.