Ciao a tutti.
Esiste un modo per passare la tipologia di un controllo (oggetto) come argomento a sub e funzioni?

Mi spiego meglio

codice:
    sub prova(contenitore as panel, my_ARG as ????)
                      dim contaCtrl as integer=0
                      For Each c As Control In contenitore.Controls
                            If TypeOf c Is my_ARG Then
                                  contaCtrl += 1
                            End If
                      Next
               end sub
posso passare un valore del genere come argomento?

Grazie!