remove control by code

Hi
I have my project. It has rectangle array then I want to remove rectangle array index is 1
how to ?

Thank YOU

If it is a true array and not a control array you can simply do:

rectangleArrayName.remove 1

to remove the rectangle at index 1 in the array.

You will probably also want to call the Close method: