>Okay, now I got it. I had used the form designer to add the object initially. Now I will use code accordingly to add the object. I did not know that you could only use RemoveObject() on items created with AddObject.
>
>Thanks
>
>Ric
You can remove ANY object from it's container using RemoveObject(), not just ones added with AddObject().
In your case, if you added a control textbox through the form designer, and that textbox is named TextBox1, you could remove it with:
yourForm.RemoveObject("TextBox1")