You've declared
ClearControls
to take an array as the parameter but you are passing the 4 individual
TextBox
items.
Change the declaration to:
public void ClearControls(params TextBox[] A)
so that the arguments are collected into an array automatically.
Of course, if you call this with more than 4
TextBox
arguments then the indexing into
x
will fail as out of bounds.