It should be coded like this :
Public Function ClearTaskBar()
For Each ctrl as control In Controls
If ctrl.visible Then
End If
If ctrl.location.X=0 andalso ctrl.location.Y=0 Then
End If
Next
End Function
Now you have to decide what to do with the "crtl" ...
... but "crtl" only is accessible as control - either if it is a Button or a Lable or whatever ...