Originariamente inviata da optime pare si puote https://www.google.com/search?q=vbne...me+as+argument poi facce sape' Siii! Ce l'ho fatta! codice: sub prova(of t)(contenitore as panel) dim contaCtrl as integer=0 ForEach c AsControlIn contenitore.Controls IfTypeOf c Is t Then contaCtrl +=1 EndIf Next endsub e per richiamarla codice: prova(of miaTipologiaDiClasse)(mioContenitore)
sub prova(of t)(contenitore as panel) dim contaCtrl as integer=0 ForEach c AsControlIn contenitore.Controls IfTypeOf c Is t Then contaCtrl +=1 EndIf Next endsub
prova(of miaTipologiaDiClasse)(mioContenitore)
Regole del Forum